Skip to content

Clusterfuss, Clobber: misère variants - #116

Open
kaiiiichen wants to merge 14 commits into
GamesCrafters:masterfrom
kaiiiichen:fa26-clusterfuss-misere
Open

kaiiiichen wants to merge 14 commits into
GamesCrafters:masterfrom
kaiiiichen:fa26-clusterfuss-misere

Conversation

@kaiiiichen

Copy link
Copy Markdown
Member

Merge order

  1. Fa26 clusterfuss #106 (Clusterfuss, including its 5x5 variant). This branch is built on it, so until Fa26 clusterfuss #106 is merged this PR also shows Fa26 clusterfuss #106's commits.
  2. This PR, once Clusterfuss and Clobber: misère variants GamesmanPy#34 (misère, stacked on Fa26 clusterfuss GamesmanPy#28) is merged and its databases are deployed.

Summary

  • Registers Clusterfuss <size>-misere for 2x2, 2x3, 3x3, 4x4, 4x5 and 5x5, and Clobber 3x4-misere, 3x6-misere and 5x3-misere (5x4 has none). They are listed after the standard sizes and named <size> Misere.
  • Image AutoGUI: a misère variant plays on its base board, so the -misere suffix is stripped before choosing clusterfuss/<size>.svg and clobber/<size>.svg.

Testing

Local GamesmanPy server -> this UWAPI -> GamesmanUni with GamesCrafters/GamesmanUni#218's board images:

  • every variant is listed;
  • Clusterfuss 2x3, 3x3, 4x4 and 5x5 misère were played to the end with the correct values and winner (5x5 Misere: Lose in 21 at the start, 21 moves, and "Player 2 has won the game"), with no console errors.

This PR was prepared with assistance from Claude (Anthropic's AI assistant).

matthewlee1111 and others added 14 commits October 24, 2026 13:56
- games/__init__.py: register clusterfuss with variants 2x2, 2x3, 3x3,
  4x4 and 4x5, served by GamesmanPy.
- games/image_autogui_data.py: get_clusterfuss, one cell per unit with
  row-major centers. x/o are player 1 (blue) and player 2 (red); X/O are
  the checker selected by the first click of a two-click capture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Register GamesmanPy's new '<size>-misere' variants: Clusterfuss 2x2..4x5
(the side to move with no checkers left wins) and Clobber 3x4, 3x6, 5x3,
5x4 (the player with no legal move wins).  They are listed after the
standard sizes and named '<size> Misere'.

A misere variant plays on the same board as its standard size, so the
Image AutoGUI data strips the '-misere' suffix before choosing the board
SVG (clusterfuss/<size>.svg, clobber/<size>.svg).

Tested locally end to end: GamesmanPy server -> this UWAPI ->
GamesmanUni, playing Clusterfuss 2x3, 3x3 and 4x4 misere to the end.

Co-Authored-By: Claude <noreply@anthropic.com>
GamesmanPy no longer offers clobber 5x4-misere (it could not be solved
within our memory budget), so stop listing it here.

Co-Authored-By: Claude <noreply@anthropic.com>
Served by GamesmanPy (variant '5x5'); the Image AutoGUI data already handles any size and uses clusterfuss/5x5.svg.
Brings in the 5x5 variant. The conflict in the Clusterfuss variant list
is resolved by adding 5x5 to the sizes, so 5x5 Misere is registered
too; the Image AutoGUI data already strips '-misere' and uses the 5x5
board.

Co-Authored-By: Claude <noreply@anthropic.com>
…nto fa26-clusterfuss-misere

Co-Authored-By: Claude <noreply@anthropic.com>
@kaiiiichen
kaiiiichen requested a review from egale800 December 3, 2026 03:09
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.

2 participants