Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- BugRunner4b.java MrG 2012.0403
- purpose: test out the gridworld env
- required files: ./BugRunner4b.java
- ../../gridworld.jar
- translator phase: javac -classpath .:../../gridworld.jar BugRunner4b.java
- interpreter phase: java -classpath .:../../gridworld.jar BugRunner4b
- */
- //imported classes
- import info.gridworld.actor.ActorWorld;
- import info.gridworld.actor.Bug;
- import info.gridworld.actor.Rock;
- //main class
- public class BugRunner4b
- {
- public static void main(String[] args)
- {
- ActorWorld world = new ActorWorld();
- Bug b = new Bug();
- world.add(b);
- b.removeSelfFromGrid();
- //b.removeSelfFromGrid();
- world.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement