Groups
Category
Nim is a two-player impartial game with several piles where a move removes any positive number of stones from exactly one pile.
SpragueโGrundy theory converts any impartial, normal-play game into an equivalent Nim heap using a Grundy number.