Skip to content

feat(minesweeper): per-difficulty daily Game Center leaderboards mirroring Sudoku (#291) - #328

Merged
wei18 merged 2 commits into
mainfrom
feat/ms-gc-leaderboards
Jun 4, 2026
Merged

wei18 merged 2 commits into
mainfrom
feat/ms-gc-leaderboards

Conversation

@wei18

@wei18 wei18 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

MS per-difficulty recurring-daily GC leaderboards mirroring Sudoku — ASCRegister config (app-aware) + MS program-side submit.

What

  • MS leaderboards 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).
  • Supersedes feat(minesweeper): Leaderboard / Game Center integration #291 Decision 3: old non-recurring …besttime.v1 ids fully replaced (zero lingering refs in runtime/tests).
  • GC config app-aware: Config.GCApp + leaderboards(for:) + ConfigSnapshot.live(for:); --app flag; --app minesweeper filters 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

wei18 and others added 2 commits June 4, 2026 17:59
…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
wei18 merged commit cd73780 into main Jun 4, 2026
@wei18
wei18 deleted the feat/ms-gc-leaderboards branch June 4, 2026 10:29
wei18 added a commit that referenced this pull request Jun 4, 2026
…ily now wired (#293)

The pending-feature table predated the #293 build-out. Game Center
leaderboards (#291/#328, live in ASC) and Daily mode (#290/#307) are wired;
only saved-game resume remains unwired (store copy already scrubbed, #236).

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant