Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void act()
- {
- if (steps <= sideLength && canMove())
- {
- move();
- steps++;
- if(steps == sideLength)
- {
- setDirection(225);
- }
- }
- if( steps <= sideLength*2 && canMove())
- {
- move();
- steps++;
- if (steps == sideLength*2)
- {
- setDirection(90);
- }
- }
- if(steps<sideLength*3 && canMove())
- {
- move();
- steps++;
- }
- }
- }
Add Comment
Please, Sign In to add comment