RightSignal
1 of 4

Your RightSignal

Concept of the day1 / 3

Monte Carlo tree search

The concept

How a Go program picks a move without checking every possible game

Monte Carlo tree search (MCTS) picks a move by playing many quick practice games from the current position and counting which first moves win most. A Go program uses it because checking every possible game is impossible.

It builds a tree as it goes. Each node is a board position, and each branch is a move. Every node stores two numbers: how many times it was visited and how many of those games were won.

One round has four phases. Selection walks down the tree to a promising leaf. Expansion adds a new move there. Simulation plays the game out, often with random moves. Backpropagation adds the result to every node on the path back up.