Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void up()
- {
- while (wallOnRight)
- move();
- turnRight();
- }
- public void over()
- {
- while (wallOnRight)
- move();
- turnRight();
- }
- public void down()
- {
- while (frontIsClear)
- move();
- turnLeft();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement