public GameGrid Create(int rows, int columns) { GameGrid gameGrid = new GameGrid(rows, columns); var sequence = Enumerable.Range(1, gameGrid.NumberOfCells).ToArray(); gameGrid.PopulateCellValues(sequence); gameGrid.RandomiseCells(); return gameGrid; }
public GameGridBuilder(int rows, int columns) { this.gameGrid = new GameGrid(rows, columns); }