This is a 3D tic-tac-toe using the minimax algorithm with alpha-beta pruning. It includes a GUI to make it enjoyable.
Run main.py to play it.
- The game is played on a grid that's 3 by 3 by 3 squares.
- You are X, and your friend (or the computer in this case) is O. Players take turns putting their marks in empty squares.
- The first player to get 3 of her marks in a row (up, down, across, or diagonally across the face or the cube) is the winner.
- When all 27 squares are full, the game is over. The game ends in a tie if no player has 3 marks in a row.
- Click an empty box to make your move
- Right Click to restart a game when the game ends.
- Hit SPACE to toggle between modes.
- Python to code the game
- Minimax program is written in C++ to make it overall faster
- Pygame for the GUI of the game
- GIT for Version Control
You can also run 3x3x3 TTT in Gitpod, a free online dev environment for GitHub: