Repository navigation
1.16 part 7/18: Games: new solitaires and family card games, Courtier and the card table - #178
Closed
epheterson wants to merge 1 commit into
Closed
epheterson wants to merge 1 commit into
epheterson wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Sorry @epheterson, your pull request is larger than the review limit of 150,000 diff characters |
Merged
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 10:07
a62cf60 to
466db92
Compare
epheterson
force-pushed
the
line/1.16.0-07-games-cards
branch
from
November 23, 2026 10:07
3d6d392 to
a12ffc1
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 10:51
466db92 to
5ecfc10
Compare
epheterson
force-pushed
the
line/1.16.0-07-games-cards
branch
from
November 23, 2026 10:51
a12ffc1 to
d157b69
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 16:37
5ecfc10 to
5d1459a
Compare
epheterson
force-pushed
the
line/1.16.0-07-games-cards
branch
from
November 23, 2026 16:37
d157b69 to
ce77970
Compare
epheterson
force-pushed
the
line/1.16.0-06-games-shell
branch
from
November 23, 2026 16:44
5d1459a to
77c8a8e
Compare
epheterson
force-pushed
the
line/1.16.0-07-games-cards
branch
from
November 23, 2026 16:44
ce77970 to
0ca2233
Compare
Owner
Author
|
Reviewed here; included in the release PR #189. |
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.
Part 7 of 18 of Zimi 1.16.0: Games: new solitaires and family card games, Courtier and the card table. Base:
line/1.16.0-06-games-shell(part 6); the diff shows only this part's files. The PR carries thenot-a-releaselabel and the version stays 1.15.7, so merging it cuts no release. Merge in order (1 to 17, then 18) with a merge commit, not a squash.What this is
The card games of ZimiGames: ten new solitaires, five family card games, Courtier, and the shared card code under all of them. The deck gets a new French face, and the card table gets wide and short-screen layouts and a picture of the table for the shelf. The 16 card rows in
games.json(part 6) get their pages here.What changes
solkit.js: the shared kit for tableau solitaires. A game is a few facts (what builds on what, what may be picked up, what fills an empty column); the moves, tap, hint, stuck sheet and win are written once.yukon,fortythieves,canfield,scorpion,beleaguered,eightoffare each a small.jsand.htmloversolkit.js.acesup,accordion,calculationandmontecarloare the other four solitaires; they also usesolkit.js(state, cards, layout), with rules of their own in each file.gofish.js,oldmaid.js,snap.js,ohhell.js,cheat.js: pure rules (no DOM, testable in node) followed by the page. Computers remember what was asked or caught. Snap's computer reacts at a spread of times and sometimes misses a match.courtier.js,courtier.css,courtier.html: sixteen cards in eight ranks of the court, with the rules and the computer as pure functions, then the page (620 lines).cards.js(+200, -69): a new French face, drawn as paths with no font; two index layouts (zc-ix-rowfor fanned piles,zc-ix-colfor sideways hands); court figures framed; a fan step that never covers the index.cards.css,cards2.css,cardbacks.jsandcourts.jsgo with it.solitaire.js: a wide layout puts stock over waste on the left and foundations two by two on the right; face-down cards show a fixed share of the height.cardtable.jsandcardtable.css: seat positions for five players, a short-table mode for a phone on its side, and an option that keeps the tray out of the middle of a short table.tablesnap.js: paints the table's elements as a small svg so the shelf can show a game left under way.shell.js(part 6) loads it on demand.tests/fixtures/games_solitaireandgames_tricksare updated to the new deal and layout.How to review
solkit.js(the facts a game supplies and what the kit does with them), thencards.js(the face geometry and fan limits), thencourtier.js(the rules at the top, which a node test drives).cards.jsandcardtable.js(a card off screen on a phone, 390 by 844 and on its side);tablesnap.jsreads the live DOM and gives up aboveMAX_CHARS;cheat.jsandsnap.jshold timed computer play..htmlpages are the same 30 lines; the fixtures are recorded game states.tests/test_bake_cards_gate.pyopens every card game on the shelf; it readsgames.jsonrows added in 1.16. The new.cssfiles carry generated Red blocks; the generator lands in part 9.Tests
test_games_courtier.cjs,test_games_family_cards.cjs,test_games_solitaire_variants.cjs,test_games_cards.cjs(deal, scoring, undo).test_bake_cards_gate.pyopens, deals, takes one tap, checks nothing overflows and every card is on screen.test_games_solitaire_variants_browser.py,test_games_family_cards_browser.py,test_games_ohhell_five_browser.py,test_games_courtier_browser.py.test_games_cascade_fan_browser.py,test_games_fans_all_browser.py,test_games_court_fill_browser.py,test_games_climbing_status_browser.py.test_games_stuck_after_stock_browser.py,test_games_stuck_sheets_browser.py; the shelf picture:test_games_table_snap_browser.py.