Skip to content

pavelanni/hexapawn-go

Repository files navigation

Machine learning with matchboxes

The game

The physical implementation is described at Instructables.

The rules

From the article linked above:

Hexapawn is played on a 3 x 3 board, with three chess pawns on each side as shown in Figure 43. Dimes and pennies can be used instead of actual chess pieces. Only two types of move are allowed:

  • A pawn may advance straight forward one square to an empty square

  • A pawn may capture an enemy pawn by moving one square diagonally, left or right, to a square occupied by the enemy. The captured piece is removed from the board. These are the same as pawn moves in chess, except that no double move, en passant capture or promotion of pawns is permitted.

The game is won in any of three ways:

  1. By advancing a pawn to the third row.

  2. By capturing all enemy pieces.

  3. By achieving a position in which the enemy cannot move.

Figure 43

Players alternate moves, moving one piece at a time. A draw clearly is impossible, but it is not immediately apparent whether the first or second player has the advantage.

About

Go implementation of Martin Gardner's Hexapawn game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages