Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not wall_is_on_the_left():
- move_left()
- if not wall_is_above():
- while not wall_is_above():
- move_up()
- return None
- while not wall_is_on_the_right():
- move_right()
- if not wall_is_above():
- while not wall_is_above():
- move_up()
- while not wall_is_on_the_left():
- move_left()
- return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement