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)A(s) be the legal actions at state ss, and let T(s,a)T(s,a) be the state after action aa. Write U(s)U(s) for a terminal payoff and h(s)h(s) for an estimated score at a nonterminal depth limit. With dd remaining plies, the recurrence is


Vd(s)={U(s),s is terminal,h(s),d=0 and s is nonterminal,max⁡a∈A(s)Vd−1(T(s,a)),MAX to move,min⁡a∈A(s)Vd−1(T(s,a)),MIN to move.V_d(s)= \begin{cases} U(s), & s\text{ is terminal},\\ h(s), & d=0\text{ and }s\text{ is nonterminal},\\ \max_{a\in A(s)}V_{d-1}(T(s,a)), & \text{MAX to move},\\ \min_{a\in A(s)}V_{d-1}(T(s,a)), & \text{MIN to move}. \end{cases}


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)U(s)

Actual payoff specified by the game

Nonterminal at depth limit

Return h(s)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


A MAX root branches to two MIN positions, each with two terminal scores.


Example: The left reply pair gives MIN a choice between 44 and 99 points, so its value is 44. The right pair has value min⁡(1,7)=1\min(1,7)=1. MAX chooses the left move because max⁡(4,1)=4\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 α\alpha and β\beta reflect alternatives already established for MAX and MIN along the current search path. Begin a full-window root search with α=−∞\alpha=-\infty and β=+∞\beta=+\infty.


At MAX, maintain the largest child score seen, vv, and update α←max⁡(α,v)\alpha\leftarrow\max(\alpha,v). At MIN, maintain the smallest and update β←min⁡(β,v)\beta\leftarrow\min(\beta,v). Pass the updated thresholds to subsequent recursive calls. Stop examining remaining siblings when


α≥β.\alpha\geq\beta.


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 bb children per internal node and depth dd, exhaustive minimax takes O(bd)O(b^d) time; ideal ordering can reduce alpha–beta's time to O(bd/2)O(b^{d/2}). Its worst case remains O(bd)O(b^d).

Evaluate a limited horizon

A practical engine often stops before the game ends. Its evaluator h(s)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 α≥β\alpha\geq\beta; 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 α=−∞\alpha=-\infty and β=+∞\beta=+\infty, and a cutoff rule of α≥β\alpha\geq\beta. Count only actual terminal evaluations.


A MAX root has three MIN children with three terminal scores beneath each child.


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.


V(A)=min⁡(6,10,8)=6 points,V(B)=min⁡(4,12,7)=4 points,V(C)=min⁡(9,5,11)=5 points.\begin{aligned} V(A)&=\min(6,10,8)=6\ \text{points},\\ V(B)&=\min(4,12,7)=4\ \text{points},\\ V(C)&=\min(9,5,11)=5\ \text{points}. \end{aligned}


MAX then chooses the largest of these backed-up values.


V(root)=max⁡(6,4,5)=6 points.V(\text{root})=\max(6,4,5)=6\ \text{points}.


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\beta=4\leq\alpha=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\beta=9>6, so continue. The next leaf, 5, lowers beta to 5. Since 5≤65\leq6, skip C's last leaf, 11.


The evaluated sequence is 6,10,8,4,9,56,10,8,4,9,5.


Nevaluated=3+1+2=6,Nskipped=9−6=3.\begin{aligned} N_{\text{evaluated}}&=3+1+2=6,\\ N_{\text{skipped}}&=9-6=3. \end{aligned}


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,106,8,10; B: 4,7,124,7,12; and C: 5,9,115,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\alpha=6 points. B then cuts off after its first leaf, 4, and C cuts off after its first leaf, 5.


Nevaluated=3+1+1=5.N_{\text{evaluated}}=3+1+1=5.


The original trace evaluated ________, so this order saves one evaluation and skips 9−5=49-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.

You are implementing Adversarial Game Search for a deterministic, alternating, two-player zero-sum board game with fully visible positions. Terminal scores measure MAX's payoff. Which backup rule correctly models optimal play by both players?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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 .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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.


Three alternating decision levels lead to eight negative terminal scores.


Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice