Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Activity2;
- import kareltherobot.*;
- public class Activity2 implements Directions {
- public static void main(String[] args)
- {
- World.setVisible();
- World.setDelay(200);
- World.readWorld("Lesson3World1.kwld");
- Activity1.uberBot jake = new Activity1.uberBot (4,3,North,0);
- World.setDelay(10);
- jake.shuttleRun();// the shuttle run function its so magical.
- for (int index =0; index < 2; index++) {
- jake.turnRight();
- jake.move();
- // this thing allows the robot to turn right easily.
- jake.turnLeft();
- jake.shuttleRun();
- }
- jake.move();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement