Take stones to force your opponent to take the last one!
Nim is one of the oldest known strategy games in mathematics, with roots stretching back centuries. The rules are simple: several rows of objects are laid out, and two players take turns removing any number of objects from a single row. The player forced to take the last object loses. Despite its simplicity, Nim has deep mathematical strategy based on binary XOR calculations that guarantee a win for the player who understands the theory. Playing against the AI on various difficulty levels lets you discover these optimal strategies organically. The game also serves as an excellent introduction to combinatorial game theory, a branch of mathematics that analyzes turn-based competitive games. It is a timeless battle of wits that rewards careful thinking over luck.