Nim Game Online — Campfire Gems 6+

Save your child's achievements An account keeps every bit of progress safe. No newsletters — your email is used for progress only.

Create account
A knight faces cartoon monsters with his shield, keeping a child safe behind him New from Dad4Kids Clean YouTube for kids For families with traditional values, hand-picked by parents. Open →

The nim game is the oldest math game there is: piles of objects, take as many as you like from one pile, and the player who takes the last one wins. It looks like nothing — and hides a perfect strategy that mathematicians proved a century ago.

Here the piles are gems glowing by campfires in a night forest. Tap the gems you want, press Take, and watch your rival — from Firefly to Ancient Golem — think it over.

Later levels flip the rule: whoever takes the last gem loses. Same board, opposite goal — and the child has to rethink everything.

How to play

Tap one or more gems at a single campfire, then press Take. You must take at least one, and only from one fire per move. Take the last gem to win (or, in reversed levels, leave it to your rival).

The voiced tutorial shows the rule on the real campfires, and secret tips appear when a level is lost twice: 'try leaving two equal fires and copy your rival'.

What your child learns

Nim teaches the core of mathematical thinking: look for a pattern, test it, use it. Children discover the mirror strategy on their own, learn to count what is left for the rival, and meet the idea that a game can be 'solved'. It is the gentlest door into real game theory.

The science behind the games

Every Dad4Kids game is built on one simple truth: children want to play, not study — so we turn learning into a game worth replaying. The method draws on peer-reviewed research in game-based learning, motivation, and how memory works.

FAQ

Is there a trick to always win?

Yes — and the game lets the child discover it instead of telling: balance the campfires and copy the rival. The full rule (pairing pile sizes) is what mathematicians call the nim-sum.

What is the reversed rule?

In 'misère' levels the player who takes the last gem loses. The strategy stays almost the same — with one twist at the very end.

How many gems can I take?

As many as you like, but at least one and all from the same campfire.

Is it for a six-year-old?

Yes: the rule is one sentence, early fires are tiny, and rivals grow slowly from Firefly to Golem.

More free games for kids

What game should we build next?

Tell us what game your kid would love — describe it in a sentence or two, and we’ll build it. Free, right here on Dad4Kids.

Leave your email and we’ll send you the link when the game is ready.

Got it! We read every idea — thank you!

Check back in a couple of weeks — your game might be here.

By Evgeny Arsentiev, PhD · Last updated: September 2026