Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Method climbingFurther
- **
- * Lets bouncer climbing down complex mine-shafts.
- */
- private void climbingFurther () {
- while (bouncer.canNotMoveRight()) {
- bouncer.move();
- if (bouncer.canNotMoveForward()) {
- if (bouncer.isOnFieldWithColor(FieldColor.WHITE)){
- bouncer.turnLeft();
- bouncer.turnLeft();
- climbingUp();
- }
- else {
- bouncer.turnLeft();
- bouncer.turnLeft();
- }
- }
- }
- climbingDown();
- searchTunnel();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement