Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. while not wall_is_on_the_left():
  2. move_left()
  3.  
  4. if not wall_is_above():
  5. while not wall_is_above():
  6. move_up()
  7.  
  8. return None
  9.  
  10. while not wall_is_on_the_right():
  11. move_right()
  12.  
  13. if not wall_is_above():
  14. while not wall_is_above():
  15. move_up()
  16.  
  17. while not wall_is_on_the_left():
  18. move_left()
  19.  
  20. return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement