Remove either one or two rocks every turn. The person who removes the last rock loses.
This is ancient Chinese game of Nim. You are the computer will take turns removing rocks. You will remove either one or two rocks every turn, until there is one rock remaining. Whoever removes the last rock loses. If you experience technical difficulties with the game, please comment and I will fix it.