This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Chomp" – news ·newspapers ·books ·scholar ·JSTOR(July 2021) (Learn how and when to remove this message) |

Chomp is a two-playerstrategy game played on a rectangular grid made up of smallersquare cells, which can be thought of as the blocks of achocolate bar. The players take it in turns to choose one block and "eat it" (remove from the board), together with those that are below it and to its right. The top left block is "poisoned" and the player who eats this loses.
The chocolate-bar formulation of Chomp is due toDavid Gale, but an equivalent game expressed in terms of choosing divisors of a fixed integer was published earlier byFrederik Schuh.
Chomp is a special case of aposet game where thepartially ordered set on which the game is played is aproduct oftotal orders with the minimal element (poisonous block) removed.
Below shows the sequence of moves in a typical game starting with a 4 × 5 bar:
Player A eats two blocks from the bottom right corner; Player B eats three from the bottom row; Player A picks the block to the right of the poisoned block and eats eleven blocks; Player B eats three blocks from the remaining column, leaving only the poisoned block. Player A must eat the last block and so loses.
Note that since it is provable that player A can win when starting from a 4 × 5 bar, at least one of A's moves is a mistake.
The intermediate positions in anm ×n Chomp are integer-partitions (non-increasing sequences of positive integers) λ1 ≥ λ2 ≥···≥ λr, with λ1 ≤nandr ≤m. Their number is thebinomial coefficient, which grows exponentially withm andn.[1]
Chomp belongs to the category ofimpartial two-playerperfect information games, making it also analyzable byNim because of theSprague–Grundy theorem.
For any rectangular starting position, other than 1×1, the first player can win. This can be shown using astrategy-stealing argument: assume that the second player has a winning strategy against any initial first-player move. Suppose then, that the first player takes only the bottom right hand square. By our assumption, the second player has a response to this which will force victory. But if such a winning response exists, the first player could have played it as their first move and thus forced victory. The second player therefore cannot have a winning strategy.
Computers can easily calculate winning moves for this game on two-dimensional boards of reasonable size. However, as the number of positions grows exponentially, this is infeasible for larger boards.
For asquare starting position (i.e.,n ×n for anyn ≥ 2), the winning strategy can easily be given explicitly. The first player should present the second with anL shape of one row and one column only, of the same length, connected at the poisonous square. Then, whatever the second player does on one arm of theL, the first player replies with the same move on the second arm, always presenting the second player again with a symmetricL shape. Finally, thisL will degenerate into the single poisonous square, and the second player would lose.
Similarly, anyn × 2 (for anyn ≥ 2) is also trivial. The winning starting move is always the bottom right square. The board after this move can be thought of as two vertical chains of squares (ignoring the poisoned square), and to win, simply mimic player 2's moves on the other chain. Other paths to victory are often more complicated however.
Three-dimensional Chomp has an initial chocolate bar of acuboid of blocks indexed as (i,j,k). A move is to take a block together with any block all of whose indices are greater or equal to the corresponding index of the chosen block. In the same way Chomp can be generalised to any number of dimensions.
Chomp is sometimes described numerically. An initialnatural number is given, and players alternate choosing positivedivisors of the initial number, but may not choose 1 or amultiple of a previously chosen divisor. This game modelsn-dimensional Chomp, where the initial natural number hasnprime factors and thedimensions of the Chomp board are given by theexponents of the primes in itsprime factorization.Ordinal Chomp is played on an infinite board with some of its dimensionsordinal numbers: for example a 2 × (ω + 4) bar. A move is to pick any block and remove all blocks with both indices greater than or equal the corresponding indices of the chosen block. The case of ω × ω × ω Chomp is a notable open problem; a $100 reward has been offered[2] for finding a winning first move.
More generally, Chomp can be played on anypartially ordered set with aleast element. A move is to remove any element along with all larger elements. A player loses by taking the least element.
All varieties of Chomp can also be played without resorting to poison by using themisère play convention: The player who eats the final chocolate block is not poisoned, but simply loses by virtue of being the last player. This is identical to the ordinary rule when playing Chomp on its own, but differs when playing thedisjunctive sum of Chomp games, where only the last final chocolate block loses.