Skip to content

HomeGames › Nim

Nim

A strategy classic with a mathematical trick: take sticks from the rows and be the one to grab the last stick. Crack the pattern and nobody can beat you.

Loading…

How to play

In the rows of sticks, tap a stick to remove it and every stick to its right in that row. You and the computer take turns. Whoever takes the last stick wins.

See the full rules →

Scoreboard (vs. the computer)

0Wins
0Losses

How to play

Rules and tips

Illustration of the Nim game
  1. The game starts with rows of 1, 3, 5, and 7 sticks.
  2. On your turn, choose one row and take as many sticks as you like from it (at least one). Tapping a stick removes it and every stick to its right in the same row.
  3. You and the computer take turns.
  4. Whoever takes the very last stick wins.

Tips to play better

  • There's a perfect strategy based on pairing up the rows. Try to notice when everything is left "balanced".
  • Always leaving your opponent facing symmetrical rows tends to force a win.
  • On the "Perfect" level, the computer only loses if you make no mistakes; start on "Easy" to get the hang of it.

Controls by input type

  • Mouse / trackpad: click a stick to remove it and the ones to its right in the same row.
  • Touch (phone/tablet): tap a stick to remove it and the ones to its right in the same row.
  • Keyboard: use Tab to move through the sticks and Enter to remove from that stick onward; a text notice announces the moves.

Questions about Nim

Frequently asked questions

Explore the rest of Gamer Aqui Spot

See all the games in Games, learn about the project in About us, or read how we handle your data in the Privacy Policy.