Pentago is a game of skill, determination, and a whole lot of being stronger than a not-very-well-implemented-min-max-alpha-beta-pruning-game-search AI!
Before you play, you should probably read the rules of Pentago.
- Open up Terminal and cd into the project folder
- Run
python Pentago.py
- Follow the prompt to play
Welcome to Pentago
Please choose a color (b, w) : b
=> You are b
=> AI is w
- - - - - - - - - - - - - - - - - - -
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+
AI moving...
: 1/1 1L
- - - - - - - - - - - - - - - - - - -
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| w . . | . . . |
+-------+-------+
| . . . | . . . |
| . . . | . . . |
| . . . | . . . |
+-------+-------+
Your turn to move.
: 3/8 1r
...
+-------+-------+
| w w w | w . . |
| . b b | . . . |
| . . w | . . . |
+-------+-------+
| b . . | . b . |
| . . . | . . . |
| . b . | . . . |
+-------+-------+
AI moving...
: 2/2 1L
+-------+-------+
| w w w | w w . |
| . b b | . . . |
| . . w | . . . |
+-------+-------+
| b . . | . b . |
| . . . | . . . |
| . b . | . . . |
+-------+-------+
Game over! Winner is: w