Tic-Tac-Toe Project
- main.py - Including all the helper functions and Minimax/Alpha-Beta Pruning Algorithms
-
Run main.py by typing following command in terminal:
- If you want to play against the AI with Minimax algorithm, then run:
python3 main.py --method minimax
- If you want to play against the AI with Alpha-Beta Pruning algorithm, then run:
python3 main.py --method ab-pruning
Code reference cited: Dr. Ngan Le's Lecture note: Lecture 9 - Game Tree.