feat(classic-games): 新增 Mini Tablanette 小游戏#834
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e80b8330c
ℹ️ 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".
| isPlayerTurn = false; | ||
| render(); | ||
| if (!checkGameOver()) { | ||
| window.setTimeout(botTurn, 500); |
There was a problem hiding this comment.
Cancel pending bot turns when resetting
If the player clicks 重开 during the 500 ms delay after playing a card, the old timeout still fires against the newly reset state because it is not tracked or canceled and botTurn() only checks gameOver. In that scenario the computer immediately consumes a card from the fresh game before the player has taken a turn, leaving the new round in an inconsistent state.
Useful? React with 👍 / 👎.
Summary
project/classic-games/20260705-0315-tablanette.htmltablanette在最近 PR 元数据与project/classic-games/的main文件名中均未出现Validation
new Function(...)语法解析git diff --check -- project/classic-games/20260705-0315-tablanette.html通过Audit
bash ~/.cursor/skills/git-commit/scripts/run-audit.shAUDIT_DIR=/tmp/git-commit-audit-20260705-031915-22187OVERALL_EXIT=0