The boards state represented by a list. It contains a list of X's, O's and EMPTY's. It's initially filled by EMPTY's.
The player who needs to make the next move. This either X or O.
the player who was the first player to move in this game state. This either X or O.
The list of moves made by players to get to this game state. This initially filled with 0's.
The player turn list. It contains a list of alternating X's and O's
Number of moves made to get to this game state.
This indicates wheter this is a final game state. It is final if either X or O has won if there is no winner: NONE.
If there is a winner in this games state the value is either X or O. If the game state is a draw or the game is not finished the value is NONE.
1 |
An object of class list
of length 8.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.