Skip to main content
Karavanto

The ideas

At home · this afternoon

The game of Nim

15 minPlaying

Fifteen pebbles, a three-line rule, and a mathematical trap you have to learn to set.

You will need

Before you start

Sit face to face, and place the 15 pebbles in the middle of the table, as a reserve. Then line them up in rows of 3, 5 and 7 for the first round.

How to do it

  1. Line up 15 pebbles in 3 rows: 3 in the first, 5 in the second, 7 in the third. Draw lots to see who starts.
  2. On their turn, a player chooses a row and takes as many pebbles as they like from that row: just one, several, or all of them. They always take at least one pebble, and from a single row only.
  3. The player who takes the last pebble on the board loses the round.
  4. Example: the first player takes 2 pebbles from the row of 7, leaving 3, 5 and 5. The second takes the whole row of 3, leaving 5 and 5. The game goes on like this until the last pebble.
  5. A hint for the endgame: when all the rows are down to a single pebble, leave your opponent an odd number of one-pebble rows (1 or 3). They are then forced to take the last pebble and lose.
  6. Play 5 rounds, taking turns to start. Whoever wins the most rounds wins the game.

The challenge

Win three rounds in a row against the same opponent.

Depending on who is there

With younger children: line up rows of 2, 3 and 4 pebbles. For variety: play with 4 rows of 1, 3, 5 and 7 pebbles, or change the rule: whoever takes the last pebble wins. For two players: the natural game.

To finish

Put the pebbles in a small box. Tell a friend the secret of the game and watch them search for the strategy.