Nim (source code)

= Nim
{c}

An <impartial game> played with heaps of counters: a move removes a positive number of counters from exactly one heap. Under the <normal-play convention>, a position is losing exactly when the bitwise <exclusive or> of its heap sizes is zero.