Take the last object(s) to win (normal play), or avoid taking the last object (misere variant).
Επισκόπηση
Nim is a mathematical strategy game of perfect information. Players take turns removing objects from distinct piles. The player who takes the last object wins (normal play) or loses (misere play). Despite simple rules, Nim has deep mathematical structure.
Ρύθμιση
Objects (traditionally matchsticks or stones) are arranged in several piles. Classic setup: rows of 1, 3, 5, and 7 objects (16 total). Many variations exist with different starting configurations.
Πώς να παίξετε
- Players alternate turns.
- On your turn, remove any number of objects from a single pile (at least one, up to all of them).
- You can only take from one pile per turn.
- Play continues until all objects are removed.
- In normal play: the player who takes the last object wins.
- In misere play: the player forced to take the last object loses.
Κέρδος του παιχνιδιού
Win by taking the last object (normal) or forcing your opponent to take it (misere). The winning strategy involves binary XOR calculations of pile sizes.
Συμβουλές στρατηγικής
Ιστορία
Nim was comprehensively analyzed by Charles Bouton in 1901, who proved the winning strategy. The name may come from German 'nimm' (take) or archaic English 'nim' (steal).