Nim

A classic mathematical duel: take as many tokens as you like from a single row, but only one player can be left holding the last one.

Was this fun?
How to play

Several rows hold a handful of tokens. Players alternate turns, and on each turn you remove any number of tokens, but all from a single row. The convention you pick decides who wins.

Controls
Game modes
Tips & strategy
About Nim

Nim is an ancient public-domain take-away game and a cornerstone of combinatorial game theory. This is an original, free browser version with a perfect-play AI, hotseat and online modes.

A free, original browser game on PlayPendium. No download, no install.

PlayPendium
PlayPendium · About · Contact · Privacy · Terms · Cookies · Accessibility · Copyright · Browse all games · Classic arcade games · © 2026