The below applet is a game known as Pente. It is written for two human players, with rules as follows...
- Players takes turns placing a stone on the play field (clicking on a square).
- If two pieces are sandwiched on both sides (horizontally, vertically, or diagonally) then the two sandwiched pieces are removed from the board. This only occurs if the two pieces to be removed are already on the board and the "bread" of the sandwich is added, not if the "meat" of the sandwich is placed between the bread.
- The game is won either by capturing 5 pairs of your opponents stones, or by forming 5 stones in a row (horizontally, vertically, or diagonally).
- After each game, the player who gets the first move alternates.