TacTix


TacTix is a two-player strategy game invented by Piet Hein, a poet well known for dabbling in math and science. Players take turns to remove any number of contiguous pieces from a grid of playing pieces, alternating until the last piece is removed.
The game can be played in its misere and non-misere forms. The strategies listed here render the non-misere gameplay trivial. At the time of its founding, TacTix was played on a 6x6 board, but is now usually played on a 4x4 board. TacTix is essentially a two-dimensional version of Nim.

Game play

TacTix is played on a NxN grid of squares.
Players alternate removing pieces from a square grid, as many contiguous pieces as desired. Players alternate doing this until the last piece removes. The player who takes the last piece loses. The game is often used as a programming exercise, and many versions are available on the web as Java applets.

Strategy

First Player If N Is Odd : The player takes the center piece and symmetrically imitates every one of the opponent's moves.
Second Player If N Is Even : Player copies opponent's moves symmetrically. You will eventually take the last piece and win.

Variations

The hexagonal variation of the game, played on a six by six by six board, is called TacTex. TacTix can also be played on any size NxN board. A Non Misere version of TacTix, where the player who makes the last move is the winner, is also playable.

Analysis

On the 4 × 4 grid originally proposed by Hein, the second player will always win with correct play.
If the game is instead played with the normal play convention, the second player can always win by symmetrically mirroring the first player's moves.
Tac Tix has 65,536 reachable positions. Out of the reachable positions, 57,156 are winning, and 8,380 are losing