Nim is a game which is played by the following rules. Given one or more piles (nim-heaps), players alternate by taking all or some of
the counters in a single heap. The player taking the last counter or stack of counters
is the winner. Nim-like games are also called take-away games and disjunctive games.
If optimal strategies are used, the winner can be determined from any intermediate
position by its associated nim-value. The nim-heap
illustrated above corresponds to the game of Marienbad.
In slow exact k-Nim, each move removes one counter from exactly
nonempty piles. With
piles and , the nim-value
takes precisely the values 0, 1, 2, and 3 (Gurvich and Naumova 2026).