Minimax on a Simple 3-Level Two-Player Game Tree: Step-by-Step Selection of the Maximizer’s Best Move
Minimax on a Simple 3-Level Two-Player Game Tree: Step-by-Step Selection of the Maximizer’s Best Move
In a deterministic, perfect-information, two-player game, Minimax computes the best move by assuming:
- the maximizing player will choose moves that maximize the final outcome,
- the minimizing player will choose moves that minimize it.
We’ll build a simple game tree with 3 plies (3 levels of decisions) and then show exactly how Minimax “backs up” leaf utilities to pick the best move for the maximizing player.
Key ideas are captured by:
- Game tree
- Terminal utility
- Max node
- Min node
- Minimax
We interpret utilities as “good for the maximizing player.” So higher numbers are better for Max.
Important: “3 levels” can be interpreted in multiple ways (edges/plies vs. node-depth). Here we use three decision levels: Max (root) → Min → Max, and the utilities appear at the final leaves.
Pro Tip: Name node types before computing
Before evaluating anything, label each internal node as Max node or Min node. Minimax becomes a mechanical “max at Max nodes, min at Min nodes” backup.
Minimax value recursion (backup rule)
Let be the minimax value of node .
-
If is a Max node:
-
If is a Min node:
At the leaves, is the given Terminal utility.
Compute Minimax values and select Max’s best move
- 1Step 1
Use the given leaf utilities at the bottom of the tree: under A1: {3,5}, under A2: {2,9}, under B1: {0,4}, under B2: {6,1}.
- 2Step 2
At A1 (Max): . At A2 (Max): . At B1 (Max): . At B2 (Max): .
- 3Step 3
At A (Min): . At B (Min): .
- 4Step 4
At Root (Max): .
- 5Step 5
Since and , Max chooses move A at the root.
Minimax backup results (leaf → internal nodes → root)
Values computed by max on Max nodes and min on Min nodes.
What the numbers mean (intuitively)
- Under move A, the minimizing player will choose the worse option for Max between A1 and A2. Since A1 leads to 5 and A2 leads to 9 (from Max’s perspective), Min picks 5, making .
- Under move B, Min compares B1 (4) vs. B2 (6), and picks the smaller, 4, so .
- Therefore Max prefers A because .
Common pitfall: mixing up max and min at levels
A frequent mistake is applying max at Min nodes (or vice versa). In this course section: Root is Max, level 2 is Min, level 3 is Max; only then do you take max/min in that pattern.
Quick checks and extensions
From game-tree construction to decision
Define terminal utilities
1Assign numeric outcomes at leaf states (higher is better for the maximizing player)."
Backup at deepest Max nodes
2Compute each Max node as the maximum of its leaf children."
Backup at Min nodes
3Compute each Min node as the minimum of its already-evaluated children."
Choose at the root Max node
4Pick the move with the larger backed-up value at the root."
Knowledge Check
In Minimax, which operation is used at a Max node?