Advertisement
Guest User

Uberbot shuttle run

a guest
Nov 15th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package Activity2;
  2. import kareltherobot.*;
  3. public class Activity2 implements Directions {
  4. public static void main(String[] args)
  5. {
  6. World.setVisible();
  7. World.setDelay(200);
  8. World.readWorld("Lesson3World1.kwld");
  9. Activity1.uberBot jake = new Activity1.uberBot (4,3,North,0);
  10.  
  11. World.setDelay(10);
  12. jake.shuttleRun();// the shuttle run function its so magical.
  13. for (int index =0; index < 2; index++) {
  14.  
  15.  
  16. jake.turnRight();
  17. jake.move();
  18. // this thing allows the robot to turn right easily.
  19. jake.turnLeft();
  20. jake.shuttleRun();
  21. }
  22. jake.move();
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement