perfect strategy.fyi
A 3 left
B 4 left
C 5 left

Click a counter to take it and every counter to its right.

Play / Nim

Nim

Your move. Take any number of counters from one heap; whoever takes the last wins.

First move

You move first. The engine plays Bouton's nim-sum perfectly; from 3-4-5 and 5-7-9 the first player can force a win, from 1-3-5-7 the first player is lost. The strategy article shows how.