Nim
- 2 players
game of strategy
About this game
Nim is a two-player mathematical combinatorial game published by Bartl, in which players take turns removing objects from heaps.
You and your opponent face a set of separate heaps or piles of objects. Depending on the version you play, your aim is either to avoid taking the last object or to be the one who takes it.
The heart of the game is a simple rule for each turn: you must remove at least one object, and only from one heap or pile. Because the heaps are distinct, the choice of which heap to touch matters.
On your turn you pick one heap and take as many objects from it as you wish, as long as you take at least one. You cannot spread a single move across several heaps.
The winner is decided by the version in use: one form rewards whoever avoids taking the last object, while the other rewards whoever takes it.
The game exists in versions that differ in their winning condition, namely avoiding the last object or taking it.
Nim holds a special place in mathematics, since the Sprague–Grundy theorem reduces every impartial game to an equivalent one-pile version of nim.
Photos
- ComponentsCover
Rankings
No vote yet
Rules
Videos
Music
Comments
Related games
- Spin-offs
Get this game from the API
curl https://api.thebgdb.org/v1/games/0eafeb92-d342-4c3e-b661-c8468eb06229Last updated 25 November 2026











