Nim: don’t take the last sweet!
Nim is a very old take-away game with a secret. Take turns taking sweets; whoever has to take the last one loses. Once children spot the pattern by working backwards from the end, they start winning on purpose.
Play nim now, free →
Two ways to play
- One pile: take 1, 2 or 3 sweets each turn.
- Four rows of 1, 3, 5 and 7: take as many as you like, but only from one row.
- Either way, whoever takes the last sweet loses.
How to win at nim
Work backwards from the end.
- If you leave the other player just one sweet, you win.
- Leave 5, and whatever they take (1, 2 or 3), you can leave 1.
- So in the one-pile game the magic numbers are 1, 5, 9, 13 and 17: count back in fours.
- With two rows left, make them the same and copy whatever the other player does. At the very end, change plan: leave just one sweet.
- The full secret for four rows uses binary numbers, which is why mathematicians love this game. Fig keeps to ideas a child can use.
How Fig helps
Near the end Fig asks “Can you leave Bo with just ONE sweet?”, and helps children count back in fours to find the magic numbers. After a slip that hands Bo the win, Fig offers a take-back.
Three levels
One star plays at random. Two stars knows the endgame. Three stars knows the whole secret: can your child beat it?
Questions grown-ups ask
What age is nim for?
About five and up for the one-pile game. The four rows suit older children who like a puzzle.
Is nim the same as the 21 game?
They’re cousins. In the 21 game you count up to 21 in ones, twos or threes, and whoever says 21 loses: that’s nim with a pile of 21.
Is it free?
Yes, with no ads, no accounts and nothing to buy.
More games on Trickly
ChessLadybirds versus blueberries, with a coach who spots danger. Ages 6+.
CheckersJump to capture, and reach the far side for a crown. Ages 6+.
Tic-tac-toeThe first strategy game: win, block, and learn the fork. Ages 4+.
Four in a RowDrop counters, line up four, and learn to look up before you drop. Ages 5+.
Dots & BoxesThe pen-and-paper classic: close boxes, and learn the chain tricks. Ages 6+.
Snakes & LaddersClimb up, slide down, and count every hop. Ages 4+.
MancalaSow seeds round the board, and fill your store. Ages 5+.