Monte Carlo Tree Search for Gopher

Duration

February 2024 - July 2024

Location

Université de Technologie de Compiègne

Description

Gopher is a strategy game where two players compete on a grid, aiming to capture as many cells as possible. Players move in four directions (up, down, left, right) to control territory while trying to block their opponent’s moves. The goal is to capture the most cells and restrict the opponent's movement. In this project, I developed a Monte Carlo Tree Search (MCTS) strategy for the Gopher game. The algorithm was built from scratch and incorporates dynamic simulations, filtering of non-promising moves, and reusing evaluations of previously explored positions.

MCTS Algorithm Visualization

The game features :

Results

The algorithm achieved 2 wins and 2 losses in a tournament. Key areas for improvement include time management, opening strategies, and better resource allocation in simulations.

Future Improvements

Resources

Course materials from IA02 and Gopher Ludii AI were used during development.