Google

Nim

Give feedback

Nim is a game with matches. The matches are placed in a few heaps, with a few matches in each heap. The two players take turns to remove matches from the table. In each turn the player selects a heap and takes as many matches as he likes (at least one) from that heap. The player who takes the last match from the table wins.