TOPICS
Search

Chomp


Chomp is a two-player impartial game played on a board in the form of a rectangle, usually pictured as a chocolate bar with one poisoned corner cell. Number the rows from top to bottom and the columns from left to right, starting at 1, with the poisoned cell at (1,1). A player chooses a remaining cell (i,j) and removes it together with every remaining cell (k,l) satisfying k>=i and l>=j. The player who removes the poisoned cell loses. The rectangular version was analyzed by Gale (1974).

Every initial board with more than one cell admits a winning opening. To see this, consider the move removing only the cell (m,n) from an m×n board. If this move is winning, the assertion follows. Otherwise, the second player has a winning reply. Making that reply directly on the original board produces the same position, since any move also removes (m,n). The first player can therefore make a winning opening. This argument establishes existence without identifying a winning opening (Gale 1974).

For a one-row board of width n>1, the unique winning opening is (1,2), leaving only the poisoned cell. For a two-row board, the positions from which the player to move loses have row lengths (a+1,a) with a>=0. Consequently, the unique winning opening on a 2×n board is (2,n). On an n×n square board with n>=2, the unique winning opening is (2,2). The first player then answers each move (i,j) by (j,i) (Brouwer et al. 2005).

Gale (1974) reported that all 3×n boards with n<=100 had exactly one winning opening and asked whether winning openings were unique in general. The general assertion is false, with an 8×10 board providing a counterexample (Brouwer et al. 2005). Sheiner (2026) proved that every 3×n board, for positive integer n, has exactly one winning opening, settling the three-row case of Gale's question. This result concerns initial boards and does not assert uniqueness for arbitrary partially eaten positions.

In the three-row case, write a position as [p,q,r], where p>=q>=r>=0 are the remaining row lengths. No winning opening on [n,n,n] is made in the first row. An opening in the second row produces [n,a,a], while one in the third row produces [n,n,r], with a<n and r<n, respectively. The widths admitting second-row openings begin 1, 3, 4, 6, 8, 10, 11, 13, 15, 16, 18, 20, ... (OEIS A029900), and those admitting third-row openings begin 2, 5, 7, 9, 12, 14, 17, 19, 22, 23, 26, 29, ... (OEIS A029901). Sheiner (2026) proved that these two sets are disjoint and together contain every positive integer. The first sequence is indexed by a in the losing positions [n,a,a] and is not necessarily increasing (Brouwer et al. 2005).


See also

Combinatorial Game Theory, Impartial Game, Nim

Explore with Wolfram|Alpha

References

Brouwer, A. E.; Horváth, G.; Molnár-Sáska, I.; and Szabó, C. "On Three-Rowed Chomp." Integers 5, #G07, 1-11, 2005. https://doi.org/10.5281/zenodo.7727233.Gale, D. "A Curious Nim-Type Game." Amer. Math. Monthly 81, 876-879, 1974. https://doi.org/10.1080/00029890.1974.11993683.Sheiner, E. "Unique Winning Opening Move in Three-Row Chomp." 9 Jun 2026. https://arxiv.org/abs/2605.23837.Sloane, N. J. A. Sequences A029900 and A029901 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Chomp." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Chomp.html

Subject classifications