Repository navigation
Add Counterflow (experimental) - #527
Open
MarkSteere wants to merge 1 commit into
Open
MarkSteere wants to merge 1 commit into
MarkSteere wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (
autopassflag, 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