BlackHawke

Mission 51 rurple

Oct 12th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. def turn_right():
  2.     turn_left()
  3.     turn_left()
  4.     turn_left()
  5. while not on_beeper():
  6.     if left_is_clear():
  7.         turn_left()
  8.         move()
  9.     elif front_is_clear():
  10.         move()
  11.     elif right_is_clear():
  12.         turn_right()
  13.         move()
  14.     else :
  15.         turn_left()
  16.         turn_left()
  17.         move()
  18.        
  19. turn_off()
Advertisement
Add Comment
Please, Sign In to add comment