Nim

Take the last ball to win

Ages 6+ 1–2 players In the app boardpuzzles
Nim as it looks in the Pibbit app iPhone & iPad
Pibbit, the purple robot from our app, waving hello

In the app

Play Nim in the Pibbit app

It plays offline, there are no ads, and you pay once.

Free download with 33 games. A one-time $9.99 unlock opens Nim and 73 more; no subscription, and the purchase sits behind a grown-up check.

Download on the App Store

Want to play something right now? These are free here:

About Nim

Nim is one of the oldest strategy games there is, and one of the few with a perfect strategy hiding inside it. Rows of balls sit on the table; on your turn you take as many as you like — but only from one row. Whoever takes the very last ball wins. It looks like luck at first, and then one day a child spots the pattern and starts winning every time. Every layout here is one a good player can win from.

Nim is one of our board & strategy games for kids. This one plays in the iPhone and iPad app rather than in the browser, but 33 of our games are free to play right here — browse the full library to find them. It is also in our logic games for kids and classic games for kids collections.

How to Play

  • Tap a ball to take it and every ball to its right in that row.
  • You must take at least one, and only from a single row.
  • Then the computer takes its turn.
  • Whoever takes the very last ball wins.

Tips & Tricks

  • Try to leave the rows balanced — two equal rows are strong.
  • Think about what you're leaving behind, not what you're taking.
  • On Hard the computer plays perfectly, so you have to be exact.

What It Practises

Nim is mostly for fun, but it still asks something of a child:

  • Thinking a move ahead
  • Working backwards from the goal

Nim — Frequently Asked Questions

Is Nim free to play?

Nim is part of Pibbit, our app for iPhone and iPad. The app is free to download and 33 of its games are free; Nim is one of the 74 that open with a single $9.99 purchase. You pay once, there is no subscription, and the purchase sits behind a grown-up check.

Can you play Nim online?

Not on the website. Nim plays in the Pibbit app, where it works offline and has no ads. If you want something to play in the browser right now, Tic-Tac-Toe, 2048 and Connect Four are free on this site.

How do you play Nim?

Tap a ball to take it and the rest of its row after it. Tap a ball to take it and every ball to its right in that row.

What age is Nim for?

Nim is made for ages 6 to 12. It helps children practise thinking a move ahead and working backwards from the goal while they play.

Can two people play Nim?

Yes — Nim is a 1–2 players game, so two players can share one iPhone or iPad.

You Might Also Like

More games →
board

Three Men's Morris

Get three in a row — then keep sliding until you do

Ages 6+ 1–2 players In the app
puzzles

Tower of Hanoi

Move the whole tower, one disc at a time

Ages 9+ 1 player In the app
puzzles

Peg Solitaire

Jump the pegs until only one is left

Ages 6+ 1 player In the app
board

Tic-Tac-Toe

Get three in a row to beat the computer!

Ages 6+ 1–2 players
puzzles

Minesweeper

Use clues to uncover every safe square!

Ages 9+ 1 player In the app
board

Leap Home

Hop your six pieces across to the far corner

Ages 6+ 1–2 players In the app
Free printable worksheets, too!

Math, reading, spelling, flashcards and coloring pages — all free in our Learning Center.

Explore →