/* * AP(r) Computer Science GridWorld Case Study: * Copyright(c) 2005-2006 Cay S. Horstmann (http://horstmann.com) * * This code is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation. * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * @author Cay Horstmann */ import info.gridworld.actor.Actor; import info.gridworld.actor.ActorWorld; import info.gridworld.grid.Location; import info.gridworld.grid.UnboundedGrid; public class GameOfLifeRunner { public static void main(String[] args) { ActorWorld world = new ActorWorld(new UnboundedGrid()); world.add(new Location(2, 0), new Cell()); world.add(new Location(2, 1), new Cell()); world.add(new Location(2, 2), new Cell()); world.add(new Location(1, 2), new Cell()); world.add(new Location(0, 1), new Cell()); world.show(); } }