- Kayles
In
combinatorial game theory , Kayles is a simpleimpartial game . In the notation of octal games, Kayles is denoted . 077.Rules
Kayles is played with a row of tokens, which represent bowling pins. The row may be of any length. The two players alternate; each player, on his or her turn, may remove either any one pin (a ball bowled directly at that pin), or two adjacent pins (a ball bowled to strike both). Under the
normal play convention , a player loses when he or she has no legal move (that is, when all the pins are gone). The game can also be played usingmisère rules; in this case, the player who cannot move "wins".Analysis
Most players quickly discover that the first player has a guaranteed win in normal Kayles whenever the row length is greater than zero. This win can be achieved using a
symmetry strategy . On his or her first move, the first player should move so that the row is broken into two sections of equal length. This restricts all future moves to one section or the other. Now, the first player merely imitates the second player's moves in the opposite row.It is more interesting to ask what the
nim-value is of a row of length . This is often denoted ; it is animber , not anumber . By theSprague-Grundy theorem , is the mex of the options. For example,:
because from a row of length 5, one can move to the positions
:
Recursive calculation of values (starting with ) gives the results summarized in the following table. To find the value of on the table, write as , 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.Applications
Because certain positions in
Dots and Boxes reduce to Kayles positionsE. Berlekamp ,J. H. Conway , R. Guy. "Winning Ways for your Mathematical Plays." Academic Press, 1982.] , it is necessary to understand Kayles in order to analyze a generic Dots and Boxes position.History
Kayles was invented by
Henry Dudeney [citation|first=H. E. |last=Dudeney|title=The Canterbury puzzles|isbn=0-486-42558-4|page=118-119, puzzle 73|publisher=Dover] Conway, John H. "On Numbers and Games." Academic Press, 1976.] .Richard Guy andCedric Smith were first to completely analyze the normal-play version, using Sprague-Grundy theory.T.E. Plambeck, Daisies, Kayles and the Sibert-Conway decomposition in misere octal games, Theoret. Comput. Sci (Math Games) (1992) 96 361-388.] Themisère version was analyzed byWilliam Sibert in1973 , but he did not publish his work until1989 .Plambeck, Thane. "Kayles." http://www.plambeck.org/oldhtml/mathematics/games/misere/077/index.htm]The name "Kayles" is an Anglicization of the French "quilles", meaning "bowling."
See also
*
Combinatorial game theory
*Octal game
*Dawson's Kayles
*Nimber References
Wikimedia Foundation. 2010.