Picture of Cover

         
Home
Textbook
Software
Robot Examples
Pick3
GraphOne
GraphMultiple
GraphThreads
Checkers
Robots Documentation
Demos of becker.xtras
Java Documentation
Downloads
Installation
Favorite Tools
Change Log
Instructors
 
Printer Friendly Page

Sample Code: GraphOne.java

package examples;
import becker.robots.*;

public class GraphOne extends Object
{
   public static void main(String[] args)
   {
      GraphCity gc = new GraphCity(7, 1, 1, 10);
      gc.showThingCounts(true);
      GraphBot karel = new GraphBot(gc, 1, 1, Directions.EAST);
      CityFrame f = new CityFrame(gc, 12, 9);

      karel.makeGraph();
   }
}

Note: the source code for an applet is slightly different than for an application.



Contact: bwbecker@learningwithrobots.com.