Skip to content

feat(classic-games): 新增 Mini Tablanette 小游戏#834

Open
wyf027 wants to merge 1 commit into
mainfrom
codex/classic-game-20260705-0315-tablanette
Open

feat(classic-games): 新增 Mini Tablanette 小游戏#834
wyf027 wants to merge 1 commit into
mainfrom
codex/classic-game-20260705-0315-tablanette

Conversation

@wyf027

@wyf027 wyf027 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • 新增单文件 HTML + TailwindCSS 小游戏 Mini Tablanette
  • 路径:project/classic-games/20260705-0315-tablanette.html
  • 本轮历史扫描:tablanette 在最近 PR 元数据与 project/classic-games/main 文件名中均未出现

Validation

  • 文件存在,HTML 结构完整
  • 已确认包含 TailwindCSS CDN
  • 已确认包含可运行游戏逻辑:发牌、匹配收牌、玩家/电脑回合、补牌、结算、重开
  • 内联 JavaScript 已通过 new Function(...) 语法解析
  • git diff --check -- project/classic-games/20260705-0315-tablanette.html 通过

Audit

  • bash ~/.cursor/skills/git-commit/scripts/run-audit.sh
  • AUDIT_DIR=/tmp/git-commit-audit-20260705-031915-22187
  • OVERALL_EXIT=0
  • WARN:无

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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