Advertisement
calcpage

p23BugRunner4a.java

Apr 16th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.67 KB | None | 0 0
  1. /*
  2. BugRunner4a.java        MrG     2012.0403
  3. purpose:        test out the gridworld env
  4. required files:     ./BugRunner4a.java
  5.             ../../gridworld.jar
  6. translator phase:   javac -classpath .:../../gridworld.jar BugRunner4a.java
  7. interpreter phase:  java -classpath .:../../gridworld.jar BugRunner4a
  8. */
  9.  
  10. //imported classes
  11. import info.gridworld.actor.ActorWorld;
  12. import info.gridworld.actor.Bug;
  13. import info.gridworld.actor.Rock;
  14.  
  15. //main class
  16. public class BugRunner4a
  17. {
  18.     public static void main(String[] args)
  19.     {
  20.         ActorWorld world = new ActorWorld();
  21.         Bug b = new Bug();
  22.     world.add(b);
  23.     b.putSelfInGrid(b.getGrid(),b.getLocation());
  24.         world.show();
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement