Skip to content

A decision-making algorithm used for game playing and decision-making problems. This algorithm combines the power of Monte Carlo simulation with the depth of tree search to find the best move or action. This GitHub project implements MCTS in Kotlin to solve decision-making problems efficiently.

Notifications You must be signed in to change notification settings

darian-catalin-cucer/monte-carlo-tree-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Monte Carlo Tree Search in Kotlin

This repository contains a short implementation of Monte Carlo Tree Search in Kotlin. Monte Carlo Tree Search is a probabilistic algorithm used in game AI to find the best move. The algorithm runs simulations starting from the current state and evaluates the result, updating the values of each node based on the simulations. The final move is then selected based on the results of the simulations.

This implementation uses a Node class to represent a state and its children, and a MonteCarloTreeSearch class to run the simulations and select the best move. The implementation uses a random number generator to simulate random moves, and the algorithm can be tuned by changing the MAX_ITERATIONS constant.

The implementation also uses an interface for the State and Action classes, allowing for easy integration with different game engines.

This implementation serves as a simple introduction to Monte Carlo Tree Search and can be used as a starting point for more complex applications.

About

A decision-making algorithm used for game playing and decision-making problems. This algorithm combines the power of Monte Carlo simulation with the depth of tree search to find the best move or action. This GitHub project implements MCTS in Kotlin to solve decision-making problems efficiently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages