feat(classic-games): 新增 Mini Killer Sudoku 小游戏#1242
Conversation
Made-with: Cursor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ba8d8d0d05
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| { id: "E", total: 5, cells: [[1, 3], [2, 3]] }, | ||
| { id: "F", total: 4, cells: [[2, 1], [3, 1]] }, | ||
| { id: "G", total: 6, cells: [[2, 2], [3, 2]] }, | ||
| { id: "H", total: 5, cells: [[3, 0], [3, 3]] }, |
There was a problem hiding this comment.
Keep Killer Sudoku cages contiguous
For the H cage, the two cells are (3,0) and (3,3), separated by cells from other cages; renderBoard only shows the cage total on the first cell and cellClasses only draws dashed links between adjacent cells. In this puzzle the bottom-right given 1 therefore has no visual link or total, so players cannot know it participates in the 5-sum cage from the displayed UI. Make this cage contiguous or display explicit cage labels for disconnected cells.
Useful? React with 👍 / 👎.
Summary
project/classic-games/20260718-0854-killer-sudoku-lite.htmlValidation
resetGame、cycleCell、useHint、valuesUnique、cageReport、puzzleStats、cellClasses、renderBoard、renderChecks、render、addEventListenernew Function(...)git diff --check -- project/classic-games/20260718-0854-killer-sudoku-lite.htmlAudit
run-audit.shOVERALL_EXIT=0/tmp/git-commit-audit-20260718-090647-93543Commit
5571d989e0fe905572f75d6cdd49a31451190fd1ba8d8d0d05ffc5daec9a6e9b0f4b55b676f10176