The best Tic Tac Toe move generator with alpha beta pruning algorithm (improved minimax) with many features
>>> board.move(5, players.X) # human player
+---+---+---+
| O | X | |
+---+---+---+
| | X | |
+---+---+---+
| | | |
+---+---+---+
>>> board.ai_move(players.O) # move, score, depth
(7, 0, 2)
>>> board
+---+---+---+
| O | X | |
+---+---+---+
| | X | |
+---+---+---+
| | O | |
+---+---+---+
>>> Board(3)
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+
| | | |
+---+---+---+
>>> Board(4)
+---+---+---+---+
| | | | |
+---+---+---+---+
| | | | |
+---+---+---+---+
| | | | |
+---+---+---+---+
| | | | |
+---+---+---+---+
- add max_depth to ai_move
- ai_move using multiple cores
- cache moves in a file