Pearls before Swine

Game controls:
  •  Play
The pearls, as you can see are grouped into three rows. The game shall take alternating turns at removing pearls from the game. On your turn you may remove as many pearls as you like from any row. The object of the game is to leave the last of the pearls for your opponent to take.