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.
The game starts with rows of 1, 3, 5, and 7 sticks.
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.
You and the computer take turns.
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
There are rows of sticks. On your turn, you pick a row and remove as many sticks as you like from it (at least one). Here, tapping a stick removes it and every stick to its right in that row.
In this version, whoever takes the very last stick wins. In other words, you want to leave your opponent without good moves until the last stick is yours.
On the "Perfect" level, the computer uses the optimal mathematical strategy and only loses if you play flawlessly from a winning position. On "Easy", it sometimes makes mistakes on purpose.
Yes. Nim has a known solution based on combining the row counts (the so-called nim-sum). Discovering the pattern is part of the fun.
No. Each move removes sticks from a single row. You choose how many, but they all come from the same row.
Your wins and losses against the computer are stored only in your browser, on your device. Nothing is sent to us.
Yes. Use Tab to move through the sticks and Enter or Space to remove from the focused stick onward.
No. There are no dice or cards: the outcome depends only on the players' decisions. It's pure strategy, with a mathematical foundation.
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.
We use technical storage to keep the site working. With your permission, we also save your score and game progress, only on your device, so you can pick up where you left off. This stays off until you accept.
Cookie preferences
Choose which categories you allow. You can change this decision at any time via the "Cookie preferences" link in the footer.
Keep the site working as expected and store, only on your own device, your preferences and best results. Needed for the site to function, so they do not require prior consent.
Let the site remember, only on your device, the score and progress of a game in progress so you can resume when you return. Until you accept, every game starts from scratch and nothing is saved.