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); } } }
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; } } }