Gameweave
Nim
2 players
Play now

History of Nim

Origins

Nim is a take-away game: players remove objects from piles in turn, and the player who takes the last one either wins or, in the misère version played here, loses. Games of this kind need nothing but a handful of coins, stones or matches, and it is often said that they are very old. A Chinese game of "picking stones" is sometimes named as a relative. The early history of take-away games is genuinely uncertain, however, and claims about Nim's age should be treated with caution.
The game's name is better documented than its origin. It was given by Charles L. Bouton, a mathematician at Harvard University, in the paper where he solved the game. Bouton never fully explained the name. The Oxford English Dictionary connects it to the German nimm, "take!".

How it spread

Bouton's paper, "Nim, a game with a complete mathematical theory", appeared in the Annals of Mathematics in 1901. It showed that the game can be solved exactly by writing the size of each pile in binary and checking whether each power of two appears an even number of times.
In the 1930s, two mathematicians working independently went much further. Roland Sprague, in a 1936 paper, and Patrick Grundy, in 1939, showed that every game of a broad class, in which both players have the same moves available and the last player able to move wins, behaves exactly like a single pile of Nim. This result, now called the Sprague–Grundy theorem, made Nim the foundation of a branch of mathematics, combinatorial game theory.
Because its strategy can be calculated, Nim also became a favourite game for early machines. In 1940, at the New York World's Fair, the Westinghouse company exhibited the Nimatron, an electro-mechanical Nim player conceived by the physicist Edward Condon and built by Gerald Tawney and Willard Derr. Visitors played it in large numbers. In 1951, the British company Ferranti built the Nimrod, a computer made to play Nim, for the Festival of Britain.
Nim reached a wide general audience through Martin Gardner, who wrote about it in his "Mathematical Games" column in Scientific American in 1958 and collected the piece in his first book of puzzles and games. A version of the game also plays a symbolic part in Alain Resnais's 1961 film Last Year at Marienbad.

The modern game

Nim is still played informally, in pubs and at kitchen tables, with matches or coins. In the misère form, which this package uses, the player who takes the last match loses. Its strategy is the same as the ordinary game until the very end, when only piles of one match remain, and then it reverses. That small twist makes misère Nim a classic puzzle in its own right.
In mathematics, Nim is the starting point for the study of impartial games, and it is a standard first example in courses on combinatorial game theory. Berlekamp, Conway and Guy's Winning Ways for Your Mathematical Plays uses it throughout. Many other games turn out, after analysis, to be Nim in disguise.
The version on Gameweave uses three rows of 3, 5 and 7 matches, played misère. From that starting position, the first player can force a win by taking a single match from any row.

Further reading

  • •
    Charles L. Bouton, "Nim, a game with a complete mathematical theory", Annals of Mathematics, second series, 3 (1901–1902), pp. 35–39. The paper that named and solved the game.
  • •
    R. P. Sprague, "Über mathematische Kampfspiele", Tôhoku Mathematical Journal 41 (1936). One of the two independent sources of the Sprague–Grundy theorem.
  • •
    P. M. Grundy, "Mathematics and games", Eureka 2 (1939). The other.
  • •
    Martin Gardner, Hexaflexagons, Probability Paradoxes, and the Tower of Hanoi (Cambridge University Press, 2008; first published as The Scientific American Book of Mathematical Puzzles & Diversions, Simon and Schuster, 1959). Includes the chapter "Nim and Tac Tix".
  • •
    Elwyn R. Berlekamp, John H. Conway and Richard K. Guy, Winning Ways for Your Mathematical Plays, volume 1 (Academic Press, 1982). The standard account of Nim and the games built on it.
  • •
    "Nimatron", Wikipedia. On the 1940 World's Fair machine.
  • •
    "Nim", Wikipedia. An overview of the game, its history and its mathematics, including the Nimrod computer.
Nim still
Nim
Verified
No ratings yet
2 players
2–5 min
Play now

Facts

Players
2 players
Play time
2–5 min
Games played
Not played yet
Updated
5 days ago
Version
1.2.0
Minimum age
All ages
License