// Generate List of Lists for visualizer public List<List<bool>> GenerateGrid() { Range = new CellsRange(AliveCells); List<List<bool>> cells = new List<List<bool>>(); for(var row = 0; row < Range.RowRange; row++) { cells.Add(GenerateRow(Range.ColRange)); } foreach(var cell in AliveCells) { cells[cell.Row - Range.LowRow][cell.Col - Range.LowCol] = true; } return cells; }
public GameBoard(List<Cell> aliveCells) { ressurectionCellCandidates = new List<Cell>(); AliveCells = aliveCells; Range = new CellsRange(aliveCells); }