Beat the Machine
Take turns removing counters. Whoever takes the last one wins. The machine has never lost, because it knows a rule you don't. Play until you find it.
New round
How to play
The rules
You and the machine take turns removing counters. On each turn you must take at least one. The player who takes the last counter wins. Each level changes what you're allowed to take.
Making a move
- Levels 1 and 2: press a Take button.
- Levels 3 and 4: tap a counter to take it and every counter above it in that pile, then confirm. Or use the pile menus in the side panel.
- Keyboard: 1–4 take that many (levels 1 and 2), N new game, H hint.
How it's meant to go
You'll lose. That's the point: watch what the machine leaves you each time. Use the hints, then press Learn the rule. The lesson works it out with your own game, then you switch the rule on and win. Level 4 asks a harder question: should you even go first?
The hidden rule
You beat the machine.
You didn't get luckier. You found the rule: work backwards to the positions that lose, then always hand those to your opponent. For Nim, that rule is hidden in binary, which is why it looks like magic until you see it.
That's what competition maths coaching feels like: small games, big ideas, one proof at a time.