private void UpdateCells() { for (var i = 0; i < grid.gridLength; i++) { for (var j = 0; j < grid.gridWidth; j++) { Cell currentCell = grid.QueryContents(i, j); if (currentCell.IsAliveNextCycle()) { currentCell.Live(); } else { currentCell.Die(); } } } }
public void ADeadCellCanLive() { cell.Live(); Assert.IsTrue(cell.isAlive()); }
public void Init() { cell = new Cell(); livecell = new Cell(); livecell.Live(); }
public void PlaceLivingCell(int x, int y) { cell = grid.QueryContents(x, y); cell.Live(); }