Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def turn_right():
- turn_left()
- turn_left()
- turn_left()
- while not on_beeper():
- if left_is_clear():
- turn_left()
- move()
- elif front_is_clear():
- move()
- elif right_is_clear():
- turn_right()
- move()
- else :
- turn_left()
- turn_left()
- move()
- turn_off()
Advertisement
Add Comment
Please, Sign In to add comment