# Circle Game

Try to beat the computer:

## Rules

The rules are simple. You take turns with the computer. On each
turn, you can remove any number or circles from a given row, but
you can only take circles from one row in a turn. The player to
take the last circle wins.

## Mechanics

- To take circles, click on them. The ones you will be taking
are marked out with an X. You can unmark a circle by clicking
on it. When you have marked all of the circles you want,
click on the button which says
`Take 'em`

. Those
circles will be removed, and then the computer will take its
turn.
- To start a new game, just click on
`Restart`

.
- You can change the number of circles in the starting
configuration by editing the line marked
```
Starting
numbers
```

at the top. You can change both the number
of rows and the number of circles in each row. Just
separate the numbers in the list by commas, or spaces, or
something. You need to click on `Restart`

to
start a new game to have the change take effect.

## Variations

The bottom of the applet has a few items you can toggle to change
the rules.
- You can decide who goes first for the next game.
- You can make it so that taking the last circle makes you the
winner, or if it makes you the loser.
- By default, you can take any circles from a given row.
If you select
`continuous only`

, then you have to
take a continuous block of circles. Under *continuous
only*, taking one circle out of the middle of a row
effectively makes it act like two smaller rows. (In a later
turn, one would not be able to take a continuous block of
circles which included circles from both the left half and the
right half.)

John Jones
Last modified: Thu Dec 3 12:03:06 MST 1998