public MinesweeperGrid(int rows, int columns, int minesCount)
 {
     this.rows = rows;
     this.columns = columns;
     this.minesCount = minesCount;
     this.grid = new MinesweeperCell[rows, columns];
     for (int i = 0; i < rows; i++)
     {
         for (int j = 0; j < columns; j++)
         {
             grid[i, j] = new MinesweeperCell();
         }
     }
 }
Esempio n. 2
0
 public MinesweeperGrid(int rows, int columns, int minesCount)
 {
     this.rows       = rows;
     this.columns    = columns;
     this.minesCount = minesCount;
     this.grid       = new MinesweeperCell[rows, columns];
     for (int i = 0; i < rows; i++)
     {
         for (int j = 0; j < columns; j++)
         {
             grid[i, j] = new MinesweeperCell();
         }
     }
 }