Nim
Loading game...
Loading game...
Nim is one of the oldest mathematical games in history, dating back centuries! Multiple piles of stones sit before you—take any number from one pile each turn. In the standard version, the player who takes the last stone loses. Despite simple rules, Nim contains deep mathematical theory using binary XOR operations. Perfect information, no luck—pure strategic thinking!
Force your opponent to take the last stone (or be the one to take it in misère version). Plan your moves to leave your opponent in losing positions. Master the mathematical theory for guaranteed wins against suboptimal play!
Select a row, then choose how many stones to remove. You must take at least 1 stone. The player forced to take the last stone loses the game.
Click on a pile to select it, then choose how many stones to remove. You can take any number from 1 to all stones in that pile. Players alternate turns until someone takes the last stone.
Copy the code below to embed this game on your website or blog:
<iframe src="https://ruleword.com/embed/nim/" width="600" height="400" frameborder="0" style="border-radius:12px"></iframe>