Skip to content
Main menu
  • Main page
  • Discover
  • Unexpected connections
  • Topics
  • Random article
  • Search
Your library
  • Saved articles
  • Recent discoveries
  • Rabbit-hole trails
Topic areas
  • Computer Science
  • Mathematics
  • Physics
  • Engineering
  • Biology
  • Economics
  • Curiosities
WikiholeDeeper into Wikipedia
EnglishEN
  • Saved
  • History

  • Article text and media come live from Wikipedia via the official MediaWiki API and are available under the Creative Commons Attribution-ShareAlike 4.0 License; additional terms may apply. Each article links to its source and revision.
  • WikiHole is an independent project and is not affiliated with the Wikimedia Foundation.
  • How ranking works
  • All topics
  • Reading history
  • Random article
  • MediaWiki API

Octal game

  • Article
  • Rabbit hole
  • Read
  • View history
Tools
Actions
  • Read
  • View history
General
  • Recent changes
  • Related articles
  • Random discovery
This article
Reading time
3 min
Topic
Mathematics
Quality
C-class
Views
75 in 14 days
Last edited
11 Mar 2026
Print/export
  • Printable version
In other projects
  • Wikidata item
From Wikipedia, the free encyclopedia
Rabbit hole:
  1. Octal game

Octal games are a subclass of heap games that involve removing tokens (game pieces or stones) from heaps of tokens. They have been studied in combinatorial game theory as a generalization of Nim, Kayles, and similar games.12

Octal games are impartial meaning that every move available to one player is also available to the other player. They differ from each other in the numbers of tokens that may be removed in a single move, and (depending on this number) whether it is allowed to remove an entire heap, reduce the size of a heap, or split a heap into two heaps. These rule variations may be described compactly by a coding system using octal numerals.

Loading the rest of the article…

Recent changes

Rabbit hole

Where Octal game leads. Every connection below has a source: a link in this article, a shared Wikipedia category, or CirrusSearch text similarity. Articles already on your trail are left out.

Contents
  • (Top)
  • Game specification
  • Particular octal games
  • Generalization to other bases
  • Nim-sequence
  • Computation records
  • References
  • Recent changes
  • Rabbit hole
Contents
Contents8 sections
  • (Top)
  • Game specification
  • Particular octal games
  • Nim
  • Kayles
  • Dawson's Chess
  • Dawson's Kayles
  • Generalization to other bases
  • Nim-sequence
  • Computation records
  • References
  • Recent changes
  • Rabbit hole
Study aids for Octal game

Terminology

Octal games
Octal games are a subclass of heap games that involve removing tokens (game pieces or stones) from heaps of tokens.
Taking and Breaking games
Games played with heaps in this fashion, in which the allowed moves for each heap are determined by the original heap's size, are called Taking and Breaking games in the literature.
removed
Octal games are a subset of the taking and breaking games in which the allowed moves are determined by the number of tokens removed from the heap.
finite octal games
Octal games with only a finite number of non-zero digits are called finite octal games.
Dawson's Kayles
In the game 0.07, called Dawson's Kayles, a move is to remove exactly two tokens from a heap and to distribute the remainder into zero, one, or two heaps.
first cousin
Dawson's Kayles is said to be a first cousin of Dawson's Chess.

Terms the article defines in bold, quoted in context.

Categories:
  • Combinatorial game theory
  • Mathematical games

1,214 words · 5 references · revision 1342989345 · CC BY-SA 4.0

General
  • Recent changes
  • Related articles
  • Random discovery
This article
Reading time
3 min
Topic
Mathematics
Quality
C-class
Views
75 in 14 days
Last edited
11 Mar 2026

Key concepts

  • Nim4
  • Combinatorial game theory3
  • Kayles2
  • Impartial game2
  • Subclass (set theory)1
  • Heap game1
  • Octal1
  • Misère game1
  • Grundy's game1
  • Repeating decimal1

The articles this one links to most, weighted towards the introduction.

Print/export
  • Printable version
In other projects
  • Wikidata item

Game specification

An octal game is played with tokens divided into heaps. Two players take turns moving until no moves are possible. Every move consists of selecting just one of the heaps, and either

  • removing all of the tokens in the heap, leaving no heap,
  • removing some but not all of the tokens, leaving one smaller heap, or
  • removing some of the tokens and dividing the remaining tokens into two nonempty heaps.

Heaps other than the selected heap remain unchanged. The last player to move wins in normal play. The game may also be played in misère play, in which the last player to move loses.

Games played with heaps in this fashion, in which the allowed moves for each heap are determined by the original heap's size, are called Taking and Breaking games in the literature.1 Octal games are a subset of the taking and breaking games in which the allowed moves are determined by the number of tokens removed from the heap.

The octal code for a game is specified as

0 . d1 d2 d3 d4 …,

where the octal digit dn specifies whether the player is allowed to leave zero, one, or two heaps after removing n tokens from a heap. The digit dn is the sum of

  • 1 if leaving zero heaps is permitted, 0 otherwise;
  • 2 if leaving one heap is permitted, 0 otherwise; and
  • 4 if leaving two heaps is permitted, 0 otherwise.

Zero tokens are not counted as a heap. Thus the digit dn is odd if a heap of n tokens may be removed entirely, and even otherwise. The specification of one-heap results in dn applies to removing n tokens from a heap of more than n. The two-heap results in dn apply to removing n tokens from a heap of at least n+2, and separating the remainder into two nonempty heaps.

Octal games may allow splitting a heap into two parts without removing any tokens, by use of the digit 4 to the left of the decimal point. This is similar to the move in Grundy's game, which is to split a heap into two unequal parts. Standard octal game notation, however, does not have the power to express the constraint of unequal parts.

Octal games with only a finite number of non-zero digits are called finite octal games.

Particular octal games

Nim

The most fundamental game in combinatorial game theory is Nim, in which any number of tokens may be removed from a heap, leaving zero or one heaps behind. The octal code for Nim is 0.333..., appearing in the published literature as to signify the repeating part as in a repeating decimal. It is important to realize, however, that the repeating part does not play the same role as in octal fractions, in that the games and are not identical, despite their equality as octal fractions.

Kayles

The game Kayles is usually visualized as played with a row of n pins, but may be modeled by a heap of n counters. One is allowed to remove one or two tokens from a heap and arrange the remainder into zero, one, or two heaps. The octal code for Kayles is 0.77 .

Dawson's Chess

Dawson's Chess is a game arising from a chess puzzle posed by Thomas Rayner Dawson in Caissa's Wild Roses, 1938.3 The puzzle was posed as involving opposed rows of pawns separated by a single rank. Although the puzzle is not posed as an impartial game, the assumption that captures are mandatory implies that a player's moving in any file results only in the removal of that file and its neighbors (if any) from further consideration, with the opposite player to move. Modeling this as a heap of n tokens, a player may remove an entire heap of one, two, or three tokens, may reduce any heap by two or three tokens, or may split a heap into two parts after removing three tokens. Dawson's Chess is thus represented by the octal code 0.137.

Dawson's Kayles

Generalization to other bases

Octal games like Nim, in which every move transforms a heap into zero or one heaps, are called quaternary games because the only digits that appear are 0, 1, 2, and 3. The octal notation may also be extended to include hexadecimal games, in which digits permit division of a heap into three parts. In fact, arbitrarily large bases are possible. The analysis of quaternary, octal, and hexadecimal games show that these classes of games are markedly different from each other,1 and the behavior of larger bases has not received as much scrutiny.

Nim-sequence

The Sprague–Grundy theorem implies that a heap of size n is equivalent to a nim heap of a given size, usually noted G(n). The analysis of an octal game then consists in finding the sequence of the nim-values for heaps of increasing size. This sequence G(0), G(1), G(2) ... is usually called the nim-sequence of the game.

All finite octal games analyzed so far have shown a nim-sequence ultimately periodic, and whether all finite octal games are ultimately periodic is an open question. It is listed by Richard Guy as an important problem in the field of combinatorial games.4

Computation records

A complete analysis of an octal game results in finding its period and preperiod of its nim-sequence. It is shown in Winning Ways for your Mathematical Plays that only a finite number of values of the nim-sequence is needed to prove that a finite octal game is periodic, which opened the door to computations with computers.

Octal games with at most 3 octal-digits have been analyzed through the years. There are 167 inequivalent octal games with no more than 3 octal-digits: 144 beginning with 0 and 23 beginning with 4. Of those, 79 of the former and 14 of the latter have nim-sequences that repeat within 250 terms. Of the rest, only 20 have been solved, despite the computation of millions of nim-values by Achim Flammenkamp:5

  • .45 in 19565
  • .156 by Jack Kenyon in 19671
  • .356, .055, .644 and .165 by Richard Austin in 19761
  • .16, .56, .127 and .376 by Anil Gangolli and Thane Plambeck in 19891
  • .454, .104, .106, .054 and .354 by Achim Flammenkamp between 2000 and 20025
  • 4.064, 4.344, 4.364, 4.404, and 4.4065

References

  1. 1Berlekamp, Elwyn R.; John H. Conway; Richard K. Guy (1982). Winning Ways for your Mathematical Plays. Vol. 1. Academic Press. ISBN 0-12-091101-9. Revised and reprinted as
    Winning Ways for your Mathematical Plays (2nd ed.). A K Peters Ltd. 2004. ISBN 1-56881-130-6.
  2. 2Conway, John Horton (1976). On numbers and games. Academic Press. ISBN 0-12-186350-6. Revised and reprinted as
    — (2000). On numbers and games. A K Peters Ltd. ISBN 1-56881-127-6.
  3. 3Dawson, Thomas Rayner (1973). Five Classics of Fairy Chess. Dover Publications.
  4. 4Richard K. Guy, Unsolved problems in Combinatorial Games, Games of No Chance, 1996
  5. 5

In the game 0.07, called Dawson's Kayles, a move is to remove exactly two tokens from a heap and to distribute the remainder into zero, one, or two heaps. Dawson's Kayles is named for its (non-obvious) similarity to Dawson's Chess, in that a Dawson's Kayles heap of n+1 tokens acts exactly like a Dawson's Chess heap of n tokens. Dawson's Kayles is said to be a first cousin of Dawson's Chess.

Achim Flammenkamp, Octal games
Created
15 Nov 2008
History
57 edits
38 contributors
No edits in the last 30 days
Last edited
11 Mar 2026

57 revisions in total · 38 contributors

  1. 11 Mar 2026, 17:08 UTCLaundryPizza03§ Computation records−29diff
  2. 11 Mar 2026, 17:04 UTCLaundryPizza03§ Computation records Including the 4. games; make sure I reaf this correctly.+202diff
  3. 11 Mar 2026, 16:39 UTCLaundryPizza03§ Computation records .45+63diff
  4. 11 Mar 2026, 16:10 UTCLaundryPizza03§ Nim rm unnecessary line breaks−5diff
  5. 11 Nov 2025, 22:14 UTCEsgeriath§ growthexperiments-addlink-summary-summary:1|2|0+4diff
  6. 10 Sept 2025, 00:31 UTCZinnober9mNo edit summary+2diff
  7. 11 Feb 2025, 19:51 UTCBumpfmNo edit summary−12diff
  8. 7 Feb 2025, 15:46 UTCBabysharkboss2Reverted 1 edit by 129.222.129.99 (talk)+644diff

View full revision history

Created
15 Nov 2008
History
57 edits
38 contributors
No edits in the last 30 days
Last edited
11 Mar 2026

Related articles are unavailable right now.

Wikipedia is rate limiting us right now. Try again in a minute.