public void Blinker_test() { WorldEvolver worldEvolver = new WorldEvolver(new B3S23CellEvolver()); const string blinkerInit = "- - -\r\nO O O\r\n- - -"; World world = new World(blinkerInit); Console.Out.WriteLine(world); Console.Out.WriteLine(""); world = worldEvolver.Evolve(world); Console.Out.WriteLine(world); Console.Out.WriteLine(""); world = worldEvolver.Evolve(world); Console.Out.WriteLine(world); }
public void Beacon_test() { WorldEvolver worldEvolver = new WorldEvolver(new B3S23CellEvolver()); const string beaconInit = @"- - - - - - - O O - - - - O - - - - - - - - O - - - - O O - - - - - - -"; World world = new World(beaconInit); Console.Out.WriteLine(world); Console.Out.WriteLine(""); world = worldEvolver.Evolve(world); Console.Out.WriteLine(world); Console.Out.WriteLine(""); world = worldEvolver.Evolve(world); Console.Out.WriteLine(world); }
public void SetUp() { _cellEvolverMock = new Mock<ICellEvolver>(); _worldEvolver = new WorldEvolver(_cellEvolverMock.Object); }