class documentation
class TicTacToe:
Management of a Tic-Tac-Toe game (does not do strategy).
Method | __init__ |
Start a new game. |
Method | __str__ |
Return string representation of current game board. |
Method | mark |
Put an X or O mark at position (i,j) for next player's turn. |
Method | winner |
Return mark of winning player, or None to indicate a tie. |
Method | _is |
Check whether the board configuration is a win for the given player. |
Instance Variable | _board |
Undocumented |
Instance Variable | _player |
Undocumented |