Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String getName()
- {
- return myname;
- }
- public void moveOrTurnRight()
- {
- if (frontIsClear())
- move();
- else
- turnRight();
- howManyWalls++;
- }
- public int getHowManyWalls()
- {
- return howManyWalls;
- }
Add Comment
Please, Sign In to add comment