mirror of
https://github.com/jcreek/TheFarmerWasReplaced.git
synced 2026-07-12 18:43:47 +00:00
feat(*): Add mazes
This commit is contained in:
+11
-1
@@ -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())
|
||||
Reference in New Issue
Block a user