feat(*): Add mazes

This commit is contained in:
Josh Creek
2025-12-23 18:14:20 +00:00
parent 375f285292
commit 11b12cd540
3 changed files with 224 additions and 1 deletions
+11 -1
View File
@@ -35,4 +35,14 @@ def move_to_coords(x, y):
if move_north:
move(North)
else:
move(South)
move(South)
def get_coords_from_direction(direction):
if direction == North:
return (get_pos_x(), get_pos_y()+1)
elif direction == South:
return (get_pos_x(), get_pos_y()-1)
elif direction == East:
return (get_pos_x()+1, get_pos_y())
elif direction == West:
return (get_pos_x()-1, get_pos_y())