Wednesday 23 December 2020

Northcott's Game of Soldiers

I wrote a small applet that you can use to play Northcott's Game of Soldiers.

The game works as follows:

  1. There are 4 planks, each with 5,7,11 or 13 spaces.
  2. Each turn, a player can move one of his soldiers to any free space on the same plank, which is not located behind the enemy soldier. A soldier cannot remain on the same square.
  3. The first player who does not have a valid move loses. (So the soldiers are pinned against the back of the plank with the other soldier right before it.)

You can play against the AI by clicking on the plank were you want the soldier to move, and the AI will do the same.




























Attributions: Soldier SVG Vector by svgrepo under the CC0 license. / recolored and rescaled.