Expectimax
Also known as Expectiminimax
adversarial game-tree-search
Expectimax extends minimax to games with chance, such as dice rolls or card draws. Besides the positions where a side chooses, the tree has chance positions, which list their outcomes with probabilities; a chance position is worth the probability-weighted mean of its outcomes' values, and the sides still take the best and the worst child. An outcome counts as a ply, and quiescence works as in the other searches, though a chance position is never quiesced. Because a mean depends on every outcome, this version searches every line to the depth, without pruning; it suits short horizons and games with few outcomes per draw. Its principal variation follows the most likely outcome at each chance position.
Pseudocode
algorithm Expectimax(p, d)input: position p, depth doutput: the expected minimax value of p, searched d plies deepO ← outcomes(p) ▷ chance position: moves with probabilitiesif O ≠ ∅ thenif d = 0 thenreturn evaluate(p)return Σ w · Expectimax(play(p, m), d − 1) / Σ w over (m, w) ∈ Oif d = 0 thenreturn Quiesce(p) ▷ evaluate(p) unless noisy moves are leftif moves(p) = ∅ thenreturn evaluate(p)s ← side-to-move(p)best ← nilfor each m in moves(p) dov ← Expectimax(play(p, m), d − 1)if best = nil or better(s, v, best) thenbest ← v ▷ ties go to the earliest movereturn bestIn the crates
game-tree-searchMinimax with chance positions valued at the probability-weighted mean of their outcomes, searching every line to a fixed depth.
Lineage
Comes from
generalizes Minimax
Led to
Nothing on this site.
Papers
- The *-minimax search procedure for trees containing chance nodes Bruce W. Ballard · 1983· Artificial Intelligence