Coding Challenge for POR
This is a tic-tac-toe command line game that you can play 1-Player against 2 different AI options or 2-Player against another human.
Command | Runs |
---|---|
python3 src/PlayGame.py | A Game of Tic Tac Toe |
python3 src/TicTacToe_test.py | Test Cases |
_ 1 2 3
1 X X X
2 . O .
3 . O .
Above is an example of the game board shown in command line. The default board is 3x3 with a starting index of 1.
For the 1-Player mode the human is automatically the first player, with game marker X.
This AI will randomly choose from the available moves on their turn.
This AI will choose the optimal move based on the mini-max algorithm using the alpha beta pruning method.