Exemplo n.º 1
0
 /// <summary>
 /// Setup the grid
 /// </summary>
 /// <param name="rows"></param>
 /// <param name="columns"></param>
 public Game(int rows, int columns)
 {
     if (rows <= 0 || columns <= 0)
     {
         throw new ArgumentOutOfRangeException("Row and Column size must be greater than zero");
     }
     this.InputGrid  = new Grid(rows, columns);
     this.OutputGrid = new Grid(rows, columns);
     ReachableCell.InitializeReachableCells();
 }