Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Activity1;
- import kareltherobot.*;
- public class Activity1Main implements Directions {
- public static void main(String[] args) {
- World.readWorld("Lesson1World1.kwld");
- World.setDelay(80);
- World.setVisible();
- UrRobot bobby = new UrRobot(1, 1, East, 0);
- bobby.move();
- bobby.move();
- bobby.move();
- bobby.move();
- bobby.pickBeeper();
- bobby.pickBeeper();
- bobby.turnLeft();
- bobby.move();
- bobby.move();
- bobby.move();
- bobby.turnLeft();
- bobby.turnLeft();
- bobby.turnLeft();
- bobby.move();
- bobby.pickBeeper();
- bobby.move();
- bobby.move();
- bobby.move();
- bobby.putBeeper();
- bobby.putBeeper();
- bobby.putBeeper();
- bobby.turnLeft();
- bobby.turnLeft();
- bobby.move();
- bobby.turnLeft();
- bobby.turnLeft();
- bobby.turnLeft();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement