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;
        }
Esempio n. 2
0
 public GameGridBuilder(int rows, int columns)
 {
     this.gameGrid = new GameGrid(rows, columns);
 }