Skip to content

Model of Connect4 with various agents (Human, Random, Greedy, MonteCarlo)

Notifications You must be signed in to change notification settings

gabedos/AI-Connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Connect4

Model of Connect4 with various agents (Human, Random, Greedy, MonteCarlo)

Overview

This repository models Connect4 using numerous agents. For an educational overview behind the game model & AI agent, follow the MonteCarloProject.ipynb on Google Collab

Executing Game

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!!

About

Model of Connect4 with various agents (Human, Random, Greedy, MonteCarlo)

Resources

Stars

Watchers

Forks

Packages

No packages published