Drawless square board orthogonal connection game where you flip rows of enemy stones parallel to your allocated sides.
DEFINITIONS
To flip a stone means to replace it with a stone of the opposite color.
PLAY
Black plays first, then turns alternate. On their turn, a player must place one stone of their color on an empty point.
After a placement by Black, all lines of horizontally adjacent white pieces that are horizontally adjacent to the placement are flipped. After a placement by White, all lines of vertically adjacent black pieces that are vertically adjacent to the placement are flipped.
If, at the start of a player's turn, there's a chain of orthogonally adjacent stones of their color touching the two opposite board edges of their color, that player wins. Draws are not possible.
In this implementation, the program only checks the winning condition on the 3x3, 4x4 and 5x5 boards.
|