Nim is a two-player strategy game. Each turn, the player chooses a heap and removes various items from it. When all heaps are empty there is no possible move, and the player loses.
Use this tag for questions that about algorithms and other programming problems specifically related to playing the Nim strategy game. Do not use this tag for games written in the nim (formerly known as "Nimrod") programming language.