Facebook
From Matthew Sola, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 66
  1. package Lesson2;
  2.  
  3. import kareltherobot.*;
  4.  
  5. public class Activity1 implements Directions
  6. {
  7.     public static void main(String[] args)
  8.     {
  9.         World.setDelay(1);
  10.         World.setVisible();
  11.  
  12.         UrRobot alphaBot = new UrRobot(1,1,North,1000); //Starts at the Origin
  13.  
  14.         for(int index = 0; index<1000; index++) //Places 1000 beepers
  15.         {
  16.             alphaBot.putBeeper();
  17.         }
  18.         alphaBot.move();
  19.     }
  20. }
  21.