Kids mode is on. This game is not one of the Kids games, so it is hidden here. Go back to the Kids games
Nim Games
Board games. Free. No pop-up or banner ads, no tracking cookies. Works offline.
1 to 2 players ยท Under 5 min ยท Ages 7+ (suggested)
Take any number of counters from one heap. Take the last one to win.
5 versions
Each version keeps its own best score on your device.
- NimTake any number of counters from one heap. Take the last one to win.
Play - Misere NimNim where whoever takes the last counter loses.
Play - Subtraction GameTake 1, 2 or 3 counters from a pile of 21. Take the last to win.
Play - Wythoff's GameMove the queen toward the corner. Whoever reaches it wins.
Play - KaylesKnock down one pin or two neighbours. Take the last pin to win.
Play
How to play Nim Games
Goal
Use clever counting to make the last move, or in the misere games avoid it.
How to play
- Nim: heaps of 3, 4, 5 and 7 counters. Take any number from one heap.
- Misere Nim: same heaps, but whoever takes the very last counter loses.
- Subtraction Game: one pile of 21; take 1, 2 or 3.
- Wythoff's Game: move the queen any distance left, down or diagonally down-left; whoever reaches the bottom-left corner wins.
- Kayles: knock down one pin or two neighbouring pins from a row of 13.
- Play the computer (Easy or Hard) or a friend.
How it ends
Except in Misere Nim, the player who makes the last move wins. Against the computer your score is your current run of wins.
Controls
Phone: tap a counter to take it and every counter to its right. Kayles: tap a pin twice, or a pin then its neighbour. Wythoff: tap the queen's target square.
What changes in each version
The five games are listed above; all are classic take-away games.
Tips
- In the Subtraction Game, leave a multiple of 4.
- In Nim, aim to leave heaps whose binary sizes cancel out.
Rules checked against Wikipedia: Nim (October 2026). All sources and credits