Nim Game against Computer

From an article in Wikipedia,

In another game which is commonly known as Nim (but is better called the subtraction game), an upper bound is imposed on the number of objects that can be removed in a turn. Instead of removing arbitrarily many objects, a player can only remove 1 or 2 or … or k at a time. The player taking the last object wins.

How to Play

In this game, we’ll slightly change the rule to get a certain number of stones. Now you can only grab as many stones as the number written inside colored circles.

  1. Drag and highlight the stones that you would like to remove.
  2. Click the Take button.
  3. Win the game against the computer.