Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Lesson2;
- import kareltherobot.*;
- public class Activity1Main implements Directions {
- public static void main(String[] args) {
- World.setDelay(1);
- World.setVisible();
- //Declares robot object
- UrRobot gary = new UrRobot(1, 1, East, -1);
- //For loop that sets down 1000 beepers
- for(int i =0; i <1000; i++){
- gary.putBeeper();
- }
- //Move robot and faces it north
- gary.move();
- gary.turnLeft();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement