Nim

Rules

On your turn, click on pearls to remove them.
You may remove as many pearls as you like from a single row.
You must remove at least one pearl, but you may pass on the first turn if you wish.
The player who leaves exactly one pearl remaining is the winner!
It is possible to win every game, but NimBot will win if you make even one mistake.