A testbed for two-player game agents. It's currently under development and is limited to three games: Connect Four, Othello, and Tic Tac Toe.
In a Python 3.11 environment, install the requirements
pip install -r requirements.txt
and run the package
python -m two_player_games -m <model> -v <view> -a1 <agent1> [-d1 <depth1>] -a2 <agent2> [-d2 <depth2>]
- Connect Four (
connect4) - Othello (
othello) - Tic Tac Toe (
tictactoe)
- Hidden (
hidden) - Pygame (
pygame)
- Human (
human) - Random (
random) - Maximin
- Naive: (
maximin-naive) - Defensive: (
maximin-defensive) - Stochastic: (
maximin-stochastic) - Alpha-Beta Pruning: (
maximin-alpha-beta) - Negamax
- Naive: (
- Monte Carlo Tree Search (MCTS)
python -m two_player_games -m tictactoe -v pygame -a1 human -a2 maximin-naive -d2 6