Search algorithmsCTRL K

Game AI

· 5 algorithms · game tree
Start with Minimax
// gameai

Game AI picks the best move by imagining the opponent’s best reply, and their reply to that. The game tree grows fast; the art is in not exploring all of it.

Five algorithms go from plain minimax to alpha-beta pruning, iterative deepening, expectimax for dice, and Monte Carlo tree search.

Minimax
alpha-beta · b=3 d=4
exploredprunedchosen

All algorithms

5
Each card runs its own algorithm