Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Activity1;
- import kareltherobot.*;
- public class Main implements Directions
- {
- public static void main (String[] args) {
- World.readWorld("Lesson3World2.kwld");
- World.setVisible();
- World.setDelay (50);
- uberBot jake = new uberBot (1,1,North,1);
- for (int index = 0; index < 7; index++ ) {
- jake.stairClean();
- }
- int saver = World.delay();
- World.setDelay(10);
- for (int index = 0; index < 6; index++ ) {
- jake.putBeeper();
- }
- World.setDelay (saver);
- jake.putBeeper();
- jake.movex3();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement