Add Golf game variant with nine-hole match play - #58
Merged
Merged
Conversation
strict classic rules (no wraparound, nothing plays on a king, single stock pass) with traditional lower-is-better stroke scoring across a nine-hole match. exact solver-backed hints via a plays-first dfs over a 30-bit packed position; probe-verified 22.6% follower win rate against a 0.0% random control. includes per-mode picker art, match persistence, statistics, screenshot fixture, and rules doc
all seven docs now share the same section skeleton; klondike, freecell, and yukon gain the scoring sections they were missing; solver and baseline content moves out of rules docs entirely (the hint-probe ledger is the single source for those figures)
'the linked sources disagree' had been stamped across every rules doc; freecell and yukon sources don't disagree about anything listed — those are implementation decisions — and klondike and spider differ only in specific areas, now named
the solitaire-rules- filename prefix becomes the folder name, so docs/rules/golf.md replaces docs/solitaire-rules-golf.md; readme links updated
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.
What Changed
GolfPlannerruns an exact plays-first depth-first search over a collision-free 30-bit packed position (12-byte search nodes make the 1M-node budget affordable). Winning lines when a deal is winnable, exact max-clear lines when it is not, silence only when nothing is clearable.docs/solitaire-rules-golf.md.Why
Golf is the simpler ancestor of TriPeaks — same match-against-the-waste play with a fully open columnar layout — and the lowest-effort addition to that family. Strict rules and traditional match scoring were chosen deliberately: they are the classic game, and the scoring gives lost deals (the majority under strict rules) a meaningful outcome to optimize.
Closes #46
Validation
UI Changes