Advertisement
benjaminliu

a

Oct 12th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. public void up()
  2. {
  3. while (wallOnRight)
  4.     move();
  5. turnRight();
  6. }
  7.  
  8. public void over()
  9. {
  10. while (wallOnRight)
  11.     move();
  12. turnRight();
  13. }
  14.  
  15. public void down()
  16. {
  17. while (frontIsClear)
  18. move();
  19. turnLeft();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement