Model of Connect4 with various agents (Human, Random, Greedy, MonteCarlo)
This repository models Connect4 using numerous agents. For an educational overview behind the game model & AI agent, follow the MonteCarloProject.ipynb
on Google Collab
To play Connect4, run python3 main.py --play <model1> <model2>
with options of "human", "random", "greedy", or "monte".
To simulate Connect4, run python3 main.py --simulate
.
A variety of parameters such as width, height, mcts time, and iterations can be modified via the command line arguments.
Have fun playing!!