🪵
📖 Beginner guideBoard

How to Play Nim

🔄Rotate your phone for the best experience

Nim is a board game that is easy to learn but has enough depth to keep improving at. This guide walks you through the rules, the controls and the key tips beginners need to play confidently within a couple of rounds. You can play right here on this page — the game is embedded above.

— The basics

What is Nim?

Nim is one of the oldest mathematical games still played. Several piles of objects sit on the table. Players take turns removing one or more objects from a single pile. The player who takes the last object wins (in the most common version). It looks like a simple counting game. It is actually one of the most studied games in combinatorial game theory.

The fascinating thing about Nim is that it has a mathematically perfect strategy. If you know the XOR rule — adding pile sizes in binary — you can always win from a winning position. New players play instinct. Experienced players play maths. Beating a Nim AI is the moment you graduate from one to the other.

— Step-by-step controls

How to play — the steps

  • Step 1: Hover sticks in a pile to preview
  • Step 2: Click to take that many
  • Step 3: Take the last stick to win
— Beginner tips

Beginner tips for Nim

  • Learn the XOR rule. XOR the pile sizes in binary — if zero, the position is losing.
  • Aim to leave the opponent in an XOR-zero state on every turn.
  • In small games, memorise the losing positions: (1,1), (2,2), (3,3) etc. are all instant draws.
  • When in doubt, count. Nim rewards thinking time.
  • Play against the AI repeatedly to build pattern recognition.
— Where to play

Play Nim free right now

You can play Nim free on GameJadoo — no download, no sign-up, works on any modern phone, tablet or computer. The game is embedded above so you can start playing while the guide is still open, or visit the full Nim game page for related guides, achievements and share options.

— Frequently asked questions

How to play NimFAQ

Is Nim hard to learn?

No. Nim is designed so anyone can pick it up in under a minute. The full ruleset above is short, the controls are intuitive, and most players are playing confidently by their second or third round.

Do I need to install anything to play Nim?

No. Nim runs directly in your web browser using HTML5. There is no installer, no download, no plugin — just open the page and play.

Can I play Nim on my phone?

Yes. Nim works on phones and tablets with touch controls. The controls scale to any screen size, and you can play in portrait or landscape.

What is the best strategy for Nim?

Start with the basics — Learn the XOR rule. XOR the pile sizes in binary — if zero, the position is losing. As you get more comfortable, the tips section above covers the advanced techniques that separate casual play from personal-best runs.

Is Nim free?

Yes. Nim is 100% free on GameJadoo. No account, no in-app purchases, no ads inside gameplay.

— Similar games

Games you may also enjoy learning

View all Board