Repository navigation
Clusterfuss, Clobber: misère variants - #116
Open
kaiiiichen wants to merge 14 commits into
Open
kaiiiichen wants to merge 14 commits into
kaiiiichen wants to merge 14 commits into
Conversation
- 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>
…ed by shared Uni code)
Clusterfuss stays on GamesmanPy.
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>
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.
Merge order
Summary
<size>-miserefor 2x2, 2x3, 3x3, 4x4, 4x5 and 5x5, and Clobber3x4-misere,3x6-misereand5x3-misere(5x4 has none). They are listed after the standard sizes and named<size> Misere.-miseresuffix is stripped before choosingclusterfuss/<size>.svgandclobber/<size>.svg.Testing
Local GamesmanPy server -> this UWAPI -> GamesmanUni with GamesCrafters/GamesmanUni#218's board images:
This PR was prepared with assistance from Claude (Anthropic's AI assistant).