Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /*Method climbingFurther
  2. **
  3. * Lets bouncer climbing down complex mine-shafts.
  4. */
  5. private void climbingFurther () {
  6. while (bouncer.canNotMoveRight()) {
  7. bouncer.move();
  8. if (bouncer.canNotMoveForward()) {
  9. if (bouncer.isOnFieldWithColor(FieldColor.WHITE)){
  10. bouncer.turnLeft();
  11. bouncer.turnLeft();
  12. climbingUp();
  13. }
  14. else {
  15. bouncer.turnLeft();
  16. bouncer.turnLeft();
  17. }
  18. }
  19. }
  20. climbingDown();
  21. searchTunnel();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement