This is an implementation of the game called Ultimate Tic-Tac-Toe which is basically nine tic-tac-toe in one big tic-tac-toe. This game can be played in several ways. Here is the most common version of the rules. Check the Wikipedia's page for more informations.
X begins and plays in an empty spot. After each turn, the other player plays in the little tic-tac-toe board corresponding to where the former player played. Game ends when:
- There is nowhere left to play, or
- One player won the big tic-tac-toe board
This game uses ggez.