LOGIC · FREE TO PLAY

Nim Strategy

Take one, two or three stones. The player taking the last wins.

Enable JavaScript to play. Instructions remain available below.

How to play Nim Strategy

  1. Begin with seventeen stones and take the first turn.
  2. Remove one, two or three stones on each turn.
  3. The computer then removes stones using the same rule.
  4. Whoever takes the last stone wins. Think about groups of four.

A useful way to practice

Write down what is known and what is only assumed. Look for constraints that eliminate possibilities, then test a small next step. A wrong answer is useful information about the strategy you chose.

What your result means

This is a recreational logic activity. Results describe performance on this particular task, with this device and these rules. They are not a clinical assessment, IQ score or promise of improvements in daily life. Your best result and recent sessions stay in this browser; no account is required.

Is Nim Strategy free?

Yes. You can play the full activity without a payment, download or account.

Can I use a keyboard?

Use Tab to focus buttons and Enter or Space to activate them. Answer fields accept normal typing. The maze also supports arrow keys. Timed tests will differ between touch, mouse and keyboard input.

Why did my result change?

Practice, a different generated puzzle, distractions and input timing all affect results. Compare several sessions rather than drawing a conclusion from one attempt.