arrow_back Curiosities

Nim

Nim is one of the oldest known combinatorial games. Choose how many piles to play with and how large they can be, or hit randomise, then take turns with the computer removing objects from a single pile. Whoever takes the very last object wins.

Nim is a solved game - a computer (and a human) can easily play perfectly - and many other games are actually just Nim in disguise, so it's a foundational piece of the Game Theory puzzle.

Set up the game