Advertisement
Guest User

Untitled

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