Chomp and the strategy-stealing argument
Statement
A rectangular chocolate bar has rows and columns of squares. The bottom-left square is poisoned. Two players alternately choose a remaining square and eat it together with all squares above and to its right. The player who eats the poisoned square loses.
- Prove that if the bar has more than one square, the first player has a winning strategy.
- For a bar with rows, describe the winning strategy explicitly.
Hint
- Consider the move that eats only the top-right square. 2. After the first move, try to keep the bottom row exactly one square longer than the top row.
Show solutionHide solution
Solution
Idea. The game is finite and has no draws, so exactly one of the players has a winning strategy.
1. Strategy stealing. The first player considers the move that eats only the top-right corner square.
- If leads to a position that is losing for the opponent, the first player wins by playing .
- Otherwise, the opponent has a winning reply . The square chosen by was present at the start, and eating it together with everything above and to its right also removes the top-right corner square, so playing at the very start leads to the same position as followed by . That position is losing for the player to move, so the first player wins by playing at once.
In both cases the first player has a winning strategy.
2. Two rows, explicit strategy. Let the top row have squares and the bottom row . The first player starts by eating the top-right square, creating , . He keeps the invariant after each of his moves, until he reaches , , after which the opponent has to eat the poisoned square. Suppose the opponent faces and moves:
- he eats in the top row from column : now and . The first player eats the bottom row from column : the bottom row becomes , restoring ;
- he eats in the bottom row from column (): the bottom row has squares and the top row has squares. The first player eats the end of the top row (column , if ), leaving and , so again.
The total number of squares decreases at each turn, so eventually the opponent is left with the poisoned square.
Remark. For rectangles with at least three rows and columns no explicit winning strategy is known in general.
Lesson. Strategy stealing proves existence; explicit strategies come from maintaining an invariant shape.