tic-tac-toe game programmed in old-school AI. See https://www.adrian.idv.hk/2019-03-15-tictactoe/
Requires Python 3 (or s/zip_longest/izip_longest/
)
To run:
python3 mcts 10
where the number is any integer as random seed.
human.py
: Two human players required. For testing out the data structure.minimax.py
: Minimax game tree searchalphabeta.py
: Alpha beta searchbitalphabeta.py
: New data structure, use bitboard instead of 2D array to hold the positionkiller.py
: Alpha-beta search with killer heuristicsnegascout.py
: Principal variation searchmcts.py
: Monte-Carlo tree search