• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Free MCTS Connect-4

FrostyCat

Redemption Seeker
MCTS Connect-4
Really? Another one this soon?

connect4_ingame.png

Description
This open-sourced project demonstrates a random-playout, minimally blocking MCTS AI that plays Connect-4 via a simple animated UI. You can adjust the AI's strength by setting its thinking time with a slider. All code is extensively commented and the main MCTS engine can be adapted in new projects to play other games.

This project was developed in 8 hours using the same MCTS engine as its sister Tic-Tac-Toe game, powerful enough to rival most human players at just under half a second of computation. It demonstrates both the adaptability and strength of MCTS as a method of choice for turn-based game AIs.

More Screenshots
connect4_menu.png connect4_victory.png

Links
 
Top