public void AssignPattern(GOLGrid gameGrid) { gameGrid.GetCell(1, 5).IsAlive = true; gameGrid.GetCell(4, 1).IsAlive = true; gameGrid.GetCell(4, 2).IsAlive = true; gameGrid.GetCell(5, 2).IsAlive = true; gameGrid.GetCell(5, 4).IsAlive = true; gameGrid.GetCell(5, 5).IsAlive = true; gameGrid.GetCell(5, 6).IsAlive = true; }
public void AssignPattern(GOLGrid gameGrid) { gameGrid.GetCell(0, 0).IsAlive = true; gameGrid.GetCell(0, 1).IsAlive = true; gameGrid.GetCell(0, 3).IsAlive = true; gameGrid.GetCell(0, 5).IsAlive = true; gameGrid.GetCell(0, 6).IsAlive = true; gameGrid.GetCell(1, 3).IsAlive = true; gameGrid.GetCell(2, 0).IsAlive = true; gameGrid.GetCell(2, 6).IsAlive = true; gameGrid.GetCell(3, 1).IsAlive = true; gameGrid.GetCell(3, 2).IsAlive = true; gameGrid.GetCell(3, 3).IsAlive = true; gameGrid.GetCell(3, 4).IsAlive = true; gameGrid.GetCell(3, 5).IsAlive = true; gameGrid.GetCell(6, 0).IsAlive = true; gameGrid.GetCell(6, 1).IsAlive = true; gameGrid.GetCell(6, 2).IsAlive = true; gameGrid.GetCell(6, 4).IsAlive = true; gameGrid.GetCell(6, 5).IsAlive = true; gameGrid.GetCell(6, 6).IsAlive = true; }
public Neighberhood(GOLGrid grid) { _grid = grid; }
public GameOfLifeGame(int rows, int columns) : base(rows, columns) { _gameGrid = new GOLGrid(rows, columns); prepareGame(); }
public void AssignPattern(GOLGrid gameGrid) { gameGrid.GetCell(2, 1).IsAlive = true; gameGrid.GetCell(2, 2).IsAlive = true; gameGrid.GetCell(2, 3).IsAlive = true; }