Exemple #1
0
 public TicTacToeBoard(TicTacToeGameModel parent)
 {
     Parent  = parent;
     Squares = new TicTacToeSqaure[3, 3];
     for (int i = 0; i < 3; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             Squares[i, j] = new TicTacToeSqaure(this, i, j);
         }
     }
 }
Exemple #2
0
 public TicTacToeBoard(TicTacToeGameModel parent, TicTacToeBoard board)
 {
     Parent  = parent;
     Squares = new TicTacToeSqaure[3, 3];
     for (int i = 0; i < 3; i++)
     {
         for (int j = 0; j < 3; j++)
         {
             Squares[i, j] = new TicTacToeSqaure(this, i, j);
             Squares[i, j].CurrentStatus = board.Squares[i, j].CurrentStatus;
         }
     }
 }