Kayles
Kayles is a simple impartial game in combinatorial game theory, invented by Henry Dudeney in 1908.[src] Given a row of imagined bowling pins, players take turns to knock out either one pin, or two adjacent pins, until all the pins are gone.[src] Using the notation of octal games, Kayles is denoted 0.77.[src]
Kayles is a simple impartial game in combinatorial game theory, invented by Henry Dudeney in 1908.[src] Given a row of imagined bowling pins, players take turns to knock out either one pin, or two adjacent pins, until all the pins are gone.[src] Using the notation of octal games, Kayles is denoted 0.77.[src] K_5 = \mbox{mex}\{K_0 + K_4, K_1 + K_3, K_2 + K_2, K_0 + K_3, K_1 + K_2\},\, because from a row of length 5, one can move to the positions K_0 + K_4,\quad K_1 + K_3,\quad K_2 + K_2,\quad K_0 + K_3,\text{ and } K_1 + K_2.\, Recursive calculation of values (starting with K_0 = 0 ) gives the results summarized in the following table.[src] To find the value of K_n on the table, write n as 12a + b , and look at row a, column b: At this point, the nim-value sequence becomes periodic with period 12, so all further rows of the table are identical to the last row.[src] ==Computational complexity== Under normal play, Kayles can be solved in polynomial time using Sprague-Grundy theory.[src] ==Generalizations== In the generalization of Kayles to graphs, each bowl “knocks down” (removes) a desired vertex and all its neighboring vertices , .[src] Alternatively, this game can be viewed as two players finding an independent set together.[src] Winner determination of the normal variant (the last to play wins) is solvable in polynomial time for any family of graphs with bounded asteroidal number (defined as the size of a largest subset of vertices such that the removal of the closed neighborhood of any vertex in the set leaves the remaining vertices of the set in the same connected component).[src] Similarly, in the clique-forming game, two players must find a clique in the graph.[src] In the normal variant (the last to play wins), Schaefer proved in 1978 that deciding the outcome of these games is PSPACE-complete (the same holds for the partisan versions, in which, for every vertex, only one of the players is allowed to choose it as the knock down target).[src] The misère variants of these game were proved PSPACE-complete in 2024 and the optimization variants in 2025 .[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Kayles." encyclopegia.org, 2025, https://encyclopegia.org/wiki/kayles. Accessed 02 December 2026.
Chicago
"Kayles." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/kayles.
APA
encyclopegia.org. (2025). Kayles. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/kayles
Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON