How to Play

Nim is a mathematical strategy game!

There are three distinct piles with 3, 5, and 7 items each.

On each turn, you must remove at least one item from a pile. Your turn is denoted by the highlighted button with your name.

You may remove as many items from that single pile as you wish. When you have removed as many items as you wish, press your name to switch players.

The player left to remove the final item on the board loses!

Playing the computer...

The computer player implements an algorithm to reduce the binary digital sum (also called a nim-sum) of items to 0 on each turn which guarantees a win unless you play perfectly!