Skip to content

Add Counterflow (experimental) - #527

Open
MarkSteere wants to merge 1 commit into
AbstractPlay:developfrom
MarkSteere:counterflow
Open

MarkSteere wants to merge 1 commit into
AbstractPlay:developfrom
MarkSteere:counterflow

Conversation

@MarkSteere

Copy link
Copy Markdown
Contributor

Counterflow is a two-player checker race game by Mark Steere (November 2026, designed in collaboration with Claude). It is played on an odd-sided square board: 5x5, 7x7 (default), 9x9 or 11x11. Blue checkers fill the rows above the empty middle row and red checkers the rows below it, and the two armies flow through each other in opposite directions. Checkers move like non-capturing chess queens, directly forward, diagonally forward or sideways. A move must not complete a wall (a row filled with one colour) except in the mover's far row, in the next row behind another wall of that colour, or to win, and a sideways move must shorten the shortest distance of any checker to an opening, or win. You win when all of your groups have at least one checker in your far row. At least one player always has a legal move and no position can repeat.

A player with no legal move has the turn skipped (autopass flag, with a move-log line of its own). The render follows the designer's own app: one felt colour, a green dot on every checker that has a legal move, green squares for the destinations of the selected checker, a white ring on the checker moved last, and a gold outline around the winner's groups at the end.

The tests are built from the figures of the rule sheet. The rule helpers reproduce the position counts of the designer's programs on six small boards, and the game class agrees with the engine of the designer's app on every legal move, skipped turn, checker distance and winner in 5,220 random games (492,661 positions) on the four board sizes.

Rules: https://www.marksteeregames.com/Counterflow_rules.pdf

Claude-Session: https://claude.ai/code/session_01GoHk3oWRd5GQy4KKJ1TryQ

Counterflow is a two-player checker race game by Mark Steere (November
2026, designed in collaboration with Claude).  It is played on an
odd-sided square board: 5x5, 7x7 (default), 9x9 or 11x11.  Blue checkers
fill the rows above the empty middle row and red checkers the rows
below it, and the two armies flow through each other in opposite
directions.  Checkers move like non-capturing chess queens, directly
forward, diagonally forward or sideways.  A move must not complete a
wall (a row filled with one colour) except in the mover's far row, in
the next row behind another wall of that colour, or to win, and a
sideways move must shorten the shortest distance of any checker to an
opening, or win.  You win when all of your groups have at least one
checker in your far row.  At least one player always has a legal move
and no position can repeat.

A player with no legal move has the turn skipped (`autopass` flag, with
a move-log line of its own).  The render follows the designer's own
app: one felt colour, a green dot on every checker that has a legal
move, green squares for the destinations of the selected checker, a
white ring on the checker moved last, and a gold outline around the
winner's groups at the end.

The tests are built from the figures of the rule sheet.  The rule
helpers reproduce the position counts of the designer's programs on six
small boards, and the game class agrees with the engine of the
designer's app on every legal move, skipped turn, checker distance and
winner in 5,220 random games (492,661 positions) on the four board
sizes.

Rules: https://www.marksteeregames.com/Counterflow_rules.pdf

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GoHk3oWRd5GQy4KKJ1TryQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant