Skip to content

A Monte Carlo Tree Search based bot for the game of Connect4

Notifications You must be signed in to change notification settings

TAOGenna/Connect4-MonteCarlo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect4 - MonteCarlo

A Monte Carlo Tree Search based bot for the game of Connect4

I wanted to learn Reinforcement Learning so I thought this would be a good first exercise. Plus, the algorithm used in this project is present in MuZero and AlphaGo so really wanted to learn about it!

Previously I did a minimal version with a simpler game: tictactoe.

The Game

Connect Four is a two-player strategy game in which players take turns dropping colored discs into a vertical grid, aiming to be the first to form a horizontal, vertical, or diagonal line of four discs of the same color.

Monte Carlo Tree Search

Monte Carlo Tree Search (MCTS) is a decision-making algorithm that builds a search tree by simulating random playouts from a given state, progressively refining its choices based on the results. It combines exploration of new moves with exploitation of known successful moves to find optimal actions. In particular, we employ the Upper Bound Confidence to set weights between these two.

Depending on the amount of computation budget that you give the program it may behave better or worse as it can have the opportunity to explore a larger space of possible states.

Acknowledgments

To Alfredo de la Fuente for letting us know about this project and for putting very good references. See his repo.

About

A Monte Carlo Tree Search based bot for the game of Connect4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages