← 🌲 Algorithms & AI

🌲 MCTS Builder

Idle
Iterations: 0
Tree nodes: 1
Best move visits:
Best move win-rate:
FPS:
Low win-rate
High win-rate
Unvisited
Drag — rotate · Scroll — zoom

🌲 Monte Carlo Tree Search Explained

A 3D game-decision tree grows outward from a purple root node, one Monte Carlo Tree Search iteration at a time — watch selection, expansion, simulation and backpropagation update node sizes and colours live.

🔬 What It Demonstrates

Each iteration walks down the tree using the UCB1 formula to balance exploring untried moves against exploiting known-good ones, adds one new node, runs random rollouts, and carries the result back up every visited node.

🎮 How to Use

Adjust the exploration constant, rollout count and branching factor, then press Step to watch a single iteration unfold, or set an auto-play speed to let the tree grow on its own. Node size tracks visit count; colour tracks win-rate.

💡 Did You Know?

MCTS powers DeepMind's AlphaGo and AlphaZero, letting them search game trees far too large to explore exhaustively by focusing computation on the branches most likely to matter.