Skip to content

feat(classic-games): 新增 Mini SOS 小游戏#840

Open
wyf027 wants to merge 1 commit into
mainfrom
codex/classic-game-20260705-0615-sos
Open

feat(classic-games): 新增 Mini SOS 小游戏#840
wyf027 wants to merge 1 commit into
mainfrom
codex/classic-game-20260705-0615-sos

Conversation

@wyf027

@wyf027 wyf027 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Summary

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

Validation

  • 文件存在,HTML 结构完整
  • 已确认包含 TailwindCSS CDN
  • 已确认包含可运行游戏逻辑:选择 S/O、落子、SOS 计分、电脑回应、满盘结算、重开
  • 内联 JavaScript 已通过 new Function(...) 语法解析
  • git diff --check -- project/classic-games/20260705-0615-sos.html 通过

Audit

  • bash ~/.cursor/skills/git-commit/scripts/run-audit.sh
  • AUDIT_DIR=/tmp/git-commit-audit-20260705-061646-20028
  • 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: 13ce7472ea

ℹ️ 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".

}
botThinking = true;
render();
window.setTimeout(botTurn, 450);

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 moves on restart

When the reset button is clicked during this 450ms delay, the queued botTurn still runs against the freshly reset board because the timeout is not stored/canceled and the callback has no game-generation guard. In that scenario the computer can place a piece at the start of the new game, and if the player already moved after resetting, the stale callback can produce an extra bot move in addition to the new turn's scheduled response.

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