The minimax value of a state assumes both players play optimally: the maximizing player (MAX) picks the action leading to the highest minimax value, and the minimizing player (MIN) picks the action leading to the lowest.
MINIMAX(s) =
UTILITY(s) if TERMINAL-TEST(s)
max_{a} MINIMAX(RESULT(s, a)) if TO-MOVE(s) = MAX
min_{a} MINIMAX(RESULT(s, a)) if TO-MOVE(s) = MIN
Theorem 3.1. Minimax is optimal against an optimal opponent: no strategy achieves a higher guaranteed payoff for MAX than always choosing the minimax-maximizing action.
Proof sketch. By backward induction on the finite game tree. At a terminal node, the claim holds trivially (the value is the utility). Assume it holds for all children of a node s. If TO-MOVE(s) = MAX, choosing the child with the highest minimax value guarantees at least that value regardless of MIN's subsequent play (by the inductive hypothesis applied to that child), and no other choice can guarantee more, since every other child's value is by definition ≤ the maximum. The symmetric argument holds for MIN. ∎
Minimax requires visiting every node of the game tree: O(b^m) time for branching factor b and depth m — intractable for real games (chess has b ≈ 35, m ≈ 80).
Continue with the book
Explore the full treatment, worked examples, and exercises in The AI Algorithms Compendium.
Companion article for The AI Algorithms Compendium, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
