Repository navigation
Serve Onitama, Boop, Bug and Rota from GamesmanClassic - #114
Draft
kaiiiichen wants to merge 36 commits into
Draft
kaiiiichen wants to merge 36 commits into
kaiiiichen wants to merge 36 commits into
Conversation
Merges GamesCrafters/GamesCraftersUWAPI branch onitama (c613b7d, by Jonathan Cao and LaurierKe) unchanged, so that the GamesmanClassic provider switch below can build on it. Clean merge, no conflicts. Co-Authored-By: Claude <noreply@anthropic.com>
Merges GamesCrafters/GamesCraftersUWAPI branch fa26-boop (a55b742, by Valentina) unchanged. Clean merge, no conflicts. Co-Authored-By: Claude <noreply@anthropic.com>
Merges GamesCrafters/GamesCraftersUWAPI branch fa26-bug (94ceb37, by Manlin Zhang, Lachlan Watts-Tobin and Samantha Weiss). Conflict resolution: - fa26-bug converts games/__init__.py and games/image_autogui_data.py to CRLF line endings (from commit 7fec208), so both files conflicted as a whole. The merge keeps master's LF endings and takes the branch's content changes (merged with CRs stripped). - The two remaining content conflicts are both "keep both": the Bug game entry next to master's new Breakthrough entry in games/__init__.py, and "bug" next to "breakthrough" in image_autogui_data_funcs. The branch also drops the "snakestale" and "sokoban" entries from image_autogui_data_funcs and lists "spinout" twice; that is taken as is here and restored in a separate commit. Co-Authored-By: Claude <noreply@anthropic.com>
The fa26-bug merge dropped "snakestale" and "sokoban" from image_autogui_data_funcs and listed "spinout" twice. Put the two entries back and remove the duplicate, so the funcs dict matches master apart from the new games. Co-Authored-By: Claude <noreply@anthropic.com>
Merges the head of GamesCrafters#111 (5c17669, by Sumedh Borkar) unchanged. Clean merge, no conflicts. Co-Authored-By: Claude <noreply@anthropic.com>
Switch the students' registrations (merged above, unchanged otherwise) from GamesmanPy to the fa26 GamesmanClassic ports (monitama, mboop, mbug, mrota), whose AutoGUI strings are byte-identical to the GamesmanPy modules. Variant keys and names stay the same; the variant ids become Classic option numbers: onitama 3x4 -> 1, 3x4_balanced -> 2 boop 4x4 -> 1 bug Regular -> 1, Reverse -> 2 rota regular -> 1 Bug is drawn through get_bug_classic(), a thin wrapper around get_bug(): the game's strings draw player 1 as 'w', while get_bug() maps 'r'/'b', so the wrapper reuses the 'r' tile for 'w'. Co-Authored-By: Claude <noreply@anthropic.com>
egale800
marked this pull request as ready for review
November 30, 2026 18:19
kaiiiichen
marked this pull request as draft
December 1, 2026 03:11
Co-Authored-By: Claude <noreply@anthropic.com>
Rota and Bug use the tags their GamesmanUni branches already give them (Rota: Dartboard, Rearranger, Partisan; Bug: Blocking, Partisan). 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 only after the GamesmanClassic ports are merged and deployed: Rota GamesCrafters/GamesmanClassic#102, Onitama GamesCrafters/GamesmanClassic#103, Bug GamesCrafters/GamesmanClassic#101 (needs GamesCrafters/GamesmanClassic#100), Boop GamesCrafters/GamesmanClassic#104. Until then these games would fail to load.
Merge order
This PR is built on top of the students' own UWAPI work, merged unchanged (their commits keep their SHAs and authors). Please merge in this order:
onitama(Jonathan Cao, LaurierKe): Onitama image AutoGUI.fa26-boop(Valentina): Boop image AutoGUI.fa26-bug(Manlin Zhang, Lachlan Watts-Tobin, Samantha Weiss): Bug image AutoGUI. Two things need fixing before or while merging it; see "Notes on fa26-bug" below.Until those are merged, this PR's diff also shows their commits. Those commits are theirs, unchanged. Once they are in
master, this PR shrinks to our own changes below.Our changes
data_provider=GamesmanClassic, backed by the fa26 GamesmanClassic ports (monitama,mboop,mbug,mrota). Those ports produce AutoGUI strings byte-identical to the GamesmanPy modules, so the students' image AutoGUI data is used as it is. Variant keys and names are unchanged; the variant ids become Classic option numbers:3x4→ 1,3x4_balanced→ 24x4→ 1Regular→ 1,Reverse→ 2regular→ 1mainyet, so nothing currently served changes.Reverseentry points at Py variantreverse, but the Py module calls itreversed.get_bug_classic(). A thin wrapper around the students'get_bug(). The game's strings (Py and Classic alike) draw player 1 asw, whileget_bug()mapsr/b, so the wrapper reuses thertile forw. It can go once the strings and the GUI agree on a character.snakestaleandsokoban. See below.Notes on fa26-bug
games/__init__.pyandgames/image_autogui_data.pyto CRLF line endings (from commit 7fec208), so merging it conflicts withmasterover the whole of both files. In this PR, the merge commit keepsmaster's LF endings and takes the branch's content. The two real conflicts are both resolved by keeping both sides: Bug next to the new Breakthrough entries."snakestale"and"sokoban"entries fromimage_autogui_data_funcsand lists"spinout"twice. A separate commit here puts the two entries back and removes the duplicate.fa26-bugis merged on its own first, it should be converted back to LF and keep those two entries. Otherwise Snake's Tale and Sokoban lose their image GUI, and this PR conflicts withmasteracross both files.Testing
Locally: the GamesmanClassic Python bridge, this branch, and GamesmanUni
mainwith the students' Uni branches (onitama,fa26-boop,fa26-bug) and GamesCrafters/GamesmanUni#229 merged in (fa26-boop's localhostgameAPIline dropped).3x4and3x4_balanced, with card-then-arrow moves;4x4;RegularandReverse, including multi-tile part-moves;regular, with the students' Rota art.This PR was prepared with assistance from Claude (Anthropic's AI assistant).