Advertisement
calcpage

p23BugRunner4b.java

Apr 16th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.68 KB | None | 0 0
  1. /*
  2. BugRunner4b.java        MrG     2012.0403
  3. purpose:        test out the gridworld env
  4. required files:     ./BugRunner4b.java
  5.             ../../gridworld.jar
  6. translator phase:   javac -classpath .:../../gridworld.jar BugRunner4b.java
  7. interpreter phase:  java -classpath .:../../gridworld.jar BugRunner4b
  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 BugRunner4b
  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.removeSelfFromGrid();
  24.     //b.removeSelfFromGrid();
  25.         world.show();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement