SHARE
TWEET

Untitled

a guest Nov 19th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top