Skip to content

Commit d35d457

Browse files
committed
Complex utils: added directions as symbols: < > ^ v
1 parent 5bd2006 commit d35d457

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

2019/complex_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ def amplitude(self):
7878
southwest,
7979
]
8080

81+
# Easy way of representing direction
82+
accent_to_dir = {"^": north, "v": south, ">": east, "<": west}
83+
dir_to_accent = {accent_to_dir[x]: x for x in accent_to_dir}
84+
8185
# To be multiplied by the current cartinal direction
8286
relative_directions = {
8387
"left": j,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy