Holds the maximum number of moves before the board is full this is here to avoid recalculating it every time its needed
Counter of moves that have been played so far
Holds the coordinates of the board that should be played next If the last move sends you to a finished board, then this will be null and you may choose any.
Indicates the size of Ultimate TTT we're dealing with typically this will be 3 for a 3x3 board.
Game winner, will be null if no one has won yet, -1 in a tie, 0 if player 1 won or 1 if player 2 won.
Game winner, will be null if no one has won yet, -1 in a tie, 0 if player 1 won or 1 if player 2 won.
Return a new UTTT board as a copy of this one
Copy of the current game
Getter for moves
Returns the winner for the game, throws an exception if the game hasn't finished yet.
-1 for a tie, 0 you won, 1 opponent won
Returns true if the game is over
Returns a string with the board formatted for display including new lines.
Printable version of the game board
Generated using TypeDoc
Holds the state of the game board as a two dimensional array each element of the inner array is a SubBoard