Adversarial Game Search: Values, Bounds, and Cutoffs
Adversarial Game Search chooses an action by accounting for an opponent's replies. Here you consider deterministic games with two players who alternate turns, have perfect information, and have zero-sum payoffs. Call the players MAX and MIN. You choose for MAX, while MIN acts to reduce MAX's score. Assume the explored tree is finite, or impose a finite depth limit.
Back up values from the leaves
Minimax assigns each position the outcome obtained when both players choose optimally within the searched tree. Keep every score in MAX's perspective: MIN therefore selects the smallest child value, including when all scores are negative.
Let A(s) be the legal actions at state s, and let T(s,a) be the state after action a. Write U(s) for a terminal payoff and h(s) for an estimated score at a nonterminal depth limit. With d remaining plies, the recurrence is
Check for a terminal position before applying the depth limit. At the root, choose an action attaining the largest child value; retain a stated tie-breaking rule when several actions tie.
Position encountered | Operation | Meaning |
|---|---|---|
Terminal | Return U(s) | Actual payoff specified by the game |
Nonterminal at depth limit | Return h(s) | Estimated continuation score |
MAX with depth remaining | Take the maximum | Best continuation available to MAX |
MIN with depth remaining | Take the minimum | Reply least favourable to MAX |
Example: The left reply pair gives MIN a choice between 4 and 9 points, so its value is 4. The right pair has value min(1,7)=1. MAX chooses the left move because max(4,1)=4 points.
Eliminate irrelevant continuations
Alpha–beta pruning skips continuations once bounds show that examining them cannot change the minimax root value. The inherited thresholds α and β reflect alternatives already established for MAX and MIN along the current search path. Begin a full-window root search with α=−∞ and β=+∞.
At MAX, maintain the largest child score seen, v, and update α←max(α,v). At MIN, maintain the smallest and update β←min(β,v). Pass the updated thresholds to subsequent recursive calls. Stop examining remaining siblings when
At a MAX cutoff, the true subtree value is at least the observed score; at a MIN cutoff, it is at most that score. The exact value of an abandoned subtree can remain unknown. These bounds suffice because an ancestor already has an alternative that makes the abandoned continuation irrelevant to its value.
When selecting the root move, replace the incumbent only on a strict improvement. A returned bound equal to the incumbent need not establish an exact tie.
Move ordering affects how soon useful bounds appear. Promising MAX moves and low-scoring MIN replies often work well early. For a balanced tree with b children per internal node and depth d, exhaustive minimax takes O(bd) time; ideal ordering can reduce alpha–beta's time to O(bd/2). Its worst case remains O(bd).
Evaluate a limited horizon
A practical engine often stops before the game ends. Its evaluator h(s) scores features of the current position, such as material advantage. Minimax then computes the exact backed-up value of that truncated tree, and alpha–beta preserves that value when the depth limit and evaluator stay fixed.
Searching deeper can expose missed tactics, but an arbitrary approximate evaluator gives no guarantee that every depth increase improves the chosen move. With terminal payoffs throughout and optimal opposing play, complete minimax provides its full-game guarantee.
What to remember
- Back up maxima at MAX and minima at MIN.
- Keep terminal payoffs and cutoff estimates distinct.
- Prune when α≥β; a cutoff can establish only a bound.
- Ordering changes search effort; fixed-tree alpha–beta preserves the root value.
Example: Adversarial Game Search in an Endgame
Example: You are building an analyser for a deterministic, alternating, two-player zero-sum board game. MAX can choose moves A, B, or C. MIN then chooses one of three replies, ending the game. The diagram shows every terminal payoff in utility points for MAX.
For each search trace, start afresh with no cached results, root bounds α=−∞ and β=+∞, and a cutoff rule of α≥β. Count only actual terminal evaluations.
a) Compute the minimax value of each move and choose MAX's move.
MIN selects the smallest payoff within each reply group. The minima for A, B, and C are 6 points, 4 points, and 5 points, respectively.
MAX then chooses the largest of these backed-up values.
Choose move A, with minimax value 6 utility points. The larger individual payoffs under B and C do not determine the decision because MIN controls the reply.
b) Trace alpha–beta search in the displayed left-to-right order. How many leaves are evaluated and how many are skipped?
A cutoff stops examination of remaining children once the current bounds establish that further work cannot change the root value.
First evaluate all three leaves under A. Its value is 6 points, so the root's alpha becomes ________.
Next visit B. Its first leaf makes B's current minimum ________. Updating beta gives β=4≤α=6, so skip the leaves 12 and 7. B's true value is already known to be at most 4, which is enough to reject it.
Finally visit C. Its first leaf, 9, gives β=9>6, so continue. The next leaf, 5, lowers beta to 5. Since 5≤6, skip C's last leaf, 11.
The evaluated sequence is 6,10,8,4,9,5.
The search evaluates 6 leaves and skips 3 leaves. It still establishes the root value of 6 points without establishing every abandoned subtree's exact value.
c) Keep root order A, B, C, but examine each MIN node's replies in increasing utility order. How many leaves are evaluated now?
The reply orders become A: 6,8,10; B: 4,7,12; and C: 5,9,11. This changes traversal order while keeping the tree's possible outcomes fixed.
A still requires all three evaluations because the root initially has no completed alternative. Completing A establishes α=6 points. B then cuts off after its first leaf, 4, and C cuts off after its first leaf, 5.
The original trace evaluated ________, so this order saves one evaluation and skips 9−5=4 leaves. Earlier useful bounds reduce work while preserving the minimax value.
The reordered search evaluates 5 leaves and still chooses A with value 6 utility points.
A chess engine stops searching immediately after capturing a valuable piece. Its static evaluation looks favourable, but a forced recapture lies just beyond the depth limit. Complete both statements using the standard two-word terms.
The misleading assessment caused by a critical continuation falling beyond the search boundary illustrates the .
A search method that selectively extends tactically unstable cutoff positions until a specified quietness criterion is satisfied is called .
In an endgame of a two-player tile game, MAX and MIN alternate turns and both play optimally. The diagram shows every possible continuation to a terminal position. All leaf scores measure MAX's payoff. What is the minimax value at root R? Answer in utility points, as an integer.