2012 Retro Bug
<< 2012 ClimbClub | APQuestionsTrailIndex | 2012 HorseBarn >>
Click here to see the questions from 2012
RetroBugRunner1.java
import info.gridworld.actor.*; import info.gridworld.grid.*; import java.awt.Color; public class RetroBugRunner { public static void main(String[] args) { ActorWorld world = new ActorWorld(); world.setGrid(new BoundedGrid<Actor>(4,4)); world.add(new Location(0, 0), new Rock()); world.add(new Location(1, 1), new Flower(Color.BLUE)); world.add(new Location(1, 2), new Rock()); world.add(new Location(0, 3), new Rock()); world.add(new Location(2, 1), new RetroBug()); //world.add(new Location(3, 0), new Critter()); //Example 2 //world.add(new Location(1, 1), new Rock()); //Example 3 world.show(); } }