Repository navigation
feat(minesweeper): per-difficulty daily Game Center leaderboards mirroring Sudoku (#291) - #328
Merged
Merged
Conversation
…ds (#291) Make the Game Center leaderboard reconcile app-parameterized, mirroring the metadata `--app <sudoku|minesweeper>` precedent (#310), without duplicating the reconciler or touching Sudoku's behavior. - New `Config.GCApp` enum (sudoku|minesweeper); `Config.leaderboards(for:)` + `ConfigSnapshot.live(for:)` return the per-app leaderboard set. Sudoku's `Config.leaderboards` / `.live` stay as the default, so every existing call site (validate, iap, tests) is unchanged. - `plan` / `apply` / `validate` accept optional `--app` (defaults to sudoku); for `--app minesweeper` the action list is filtered to leaderboard actions (MS has no achievements/IAPs in its GC detail). - Add MS's 3 recurring-daily leaderboards `com.wei18.minesweeper.leaderboard.{easy,medium,hard}.daily.v1` — same shape as Sudoku (ELAPSED_TIME_CENTISECOND, ASC sort, FREQ=DAILY;INTERVAL=1, PT24H, BEST_SCORE), with reference names + en/zh-Hant title localizations under an app-scoped `gc.minesweeper.leaderboard.*` xcstrings namespace. - `LeaderboardConfig` gains `titleKey` so each app's title key namespace flows through the reconciler unchanged. - ConfigConsistencyTests: pin the 3 MS leaderboard ids byte-equal to the MS runtime constant + assert the recurring-daily shape, so a drift fails a test. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…oring Sudoku (#291) Change MS runtime leaderboard ids from the non-recurring best-time shape to Sudoku's recurring-daily shape, so the MS leaderboards mirror Sudoku exactly (supersedes #291 Decision 3 per the GC-leaderboards dispatch). - `MinesweeperLeaderboardID`: `{beginner,intermediate,expert}.besttime.v1` → `{easy,medium,hard}.daily.v1`. MS engine difficulty (beginner/intermediate/expert) maps to Sudoku's id segment (easy/medium/hard); ids stay byte-equal to `Config.leaderboards(for: .minesweeper)` (ConfigConsistencyTests pins it). `bestTime(for:)` → `daily(for:)`. - Submit site (`MinesweeperGameViewModel`) + completion dashboard (`MinesweeperBoardView`) call `daily(for:)`; submit stays latched + non-blocking (no behavior change beyond the id, #312 policy preserved). - Tests updated to the daily-id scheme + a difficulty→segment mapping assertion. Note for Leader: MS still submits on ALL wins; Sudoku gates on daily-mode only. See meetings/2026-06-04_ms-gc-daily-leaderboards-asc.impl-notes.md for the divergence + open decision. Co-Authored-By: Claude Opus 4.8 <[email protected]>
wei18
added a commit
that referenced
this pull request
Jun 26, 2026
…#628) The 7 genuine, doc-only findings from the #592 triage (already-tracked, won't-fix, and the determinism-critical StableHash item handled separately — see #627): 1. flow prototypes (sudoku + minesweeper) — re-tagged SUPERSEDED: they draw the pre-SDD-003 push flow; the shipped v2.6 flow is the fullScreenCover modal + Leave-Game + popup completion in the shared GameRoot. Pointer added. 2. minesweeper-v1.md feature-gating note — corrected to match the doc's own per-feature table: GC leaderboards WIRED (#291/#328), Daily hub WIRED (#290/#307); only achievements + save-flow remain gated. 3. SDD-005 RFC Status: DRAFT -> SHIPPED 2026-06-19 (resolves the spec-vs-skill contradiction; body kept as historical snapshot). 4. resume-seam-design.md — migration-checklist paths updated to the post-rename SudokuAppComposition target. 5. lint.yml header — "3 jobs" -> "4 jobs" (+ the l10n job it omitted). 6. docs/README.md — SDD-003 label "GameAppKit" -> "Puzzle Platform UX Refresh" (matches the spec title). 7. README version note — disambiguates the v2.6 repo milestone from each app's CFBundleShortVersionString (Sudoku 2.6, Minesweeper 1.0 first submission). Doc-only; no new links (lychee-safe). Triage comment posted on #592; screenshots stay tracked under #236, StableHash under #627. Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
MS per-difficulty recurring-daily GC leaderboards mirroring Sudoku — ASCRegister config (app-aware) + MS program-side submit.
What
com.wei18.minesweeper.leaderboard.{easy,medium,hard}.daily.v1(recurring P1D), difficulty.beginner→easy / .intermediate→medium / .expert→hard(id segment mirrors Sudoku; localized titles keep real names Daily Beginner/Intermediate/Expert).…besttime.v1ids fully replaced (zero lingering refs in runtime/tests).Config.GCApp+leaderboards(for:)+ConfigSnapshot.live(for:);--appflag;--app minesweeperfilters to leaderboard actions. Sudoku unchanged (ConfigConsistencyTests still pin Sudoku's 3 ids byte-for-byte).Verify
CR: APPROVE-WITH-NITS. MinesweeperKit 72/72; ASCRegisterKit 80/82 → the 2 failures are the pre-existing appleId-drift tests already fixed on main (vanish on merge). Sudoku GC truly unchanged; #291 supersession complete.
Follow-up (tracked separately): MS submits on all wins; Sudoku gates daily-only — gate MS before v1 GA. xcstrings 3 MS keys staged in the .patch (merge before apply).
Refs #291.
🤖 Generated with Claude Code