feat(classic-games): 新增 Mini Jotto 小游戏#1233
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: 158585636a
ℹ️ 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".
| function renderLetterHints() { | ||
| letterHintsEl.innerHTML = ""; | ||
| const { present, absent } = knownLetterStates(); | ||
| "abcdefghijklmnopqrstuvwxyz".split("").slice(0, 25).forEach((letter) => { |
There was a problem hiding this comment.
Render the full alphabet in the hint board
Because this slices the alphabet to 25 characters, the Z tile is never rendered even though waltz is an allowed guess/secret word. For example, if the secret is cider and the player guesses waltz, the game computes Z as absent but the hint board cannot display that deduction, leaving the letter-state UI incomplete.
Useful? React with 👍 / 👎.
Summary
project/classic-games/20260718-0424-jotto-lite.htmlValidation
startGame、normalizeGuess、distinctLetters、scoreGuess、submitGuess、knownLetterStates、renderLetterHints、renderHistory、render、addEventListenernew Function(...)git diff --check -- project/classic-games/20260718-0424-jotto-lite.htmlAudit
run-audit.shOVERALL_EXIT=0/tmp/git-commit-audit-20260718-042714-73648Commit
28eefe93c53d3e36417c362801b4e3a8ea9817eb158585636a9d3b88ef0bd536220955c7f2dad9ca