Skip to content

feat(classic-games): 新增 Mini Mancala 小游戏#997

Open
wyf027 wants to merge 2 commits into
mainfrom
codex/classic-game-20260710-0536-mancala-lite
Open

feat(classic-games): 新增 Mini Mancala 小游戏#997
wyf027 wants to merge 2 commits into
mainfrom
codex/classic-game-20260710-0536-mancala-lite

Conversation

@wyf027

@wyf027 wyf027 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • 新增单文件 TailwindCSS 小游戏 Mini Mancala Lite。
  • 玩家从己方坑位播种石子,与 bot 轮流行动,空侧后结算双方粮仓分数。

File

  • project/classic-games/20260710-0536-mancala-lite.html

Validation

  • LIGHT_VALIDATION=pass:确认 HTML 结构、TailwindCSS CDN、核心游戏逻辑标记与脚本语法。
  • git diff --check passed for project/classic-games/20260710-0536-mancala-lite.html。
  • Commit scope checked: only the new HTML file was staged locally.

Audit

  • run-audit.sh OVERALL_EXIT=0。
  • AUDIT_DIR=/tmp/git-commit-audit-20260710-053752-17832。
  • WARN summary: none detected.

History Check

  • Checked recent PR metadata and existing project/classic-games filenames before generation.
  • mancala-lite was not found in PR title/body/branch metadata or existing filenames, so this gameplay does not repeat prior generated games.

@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: 7010502dfe

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

if (finished || pits[index] === 0) return false;
let stones = pits[index];
pits[index] = 0;
let pos = index;

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 Start bot sowing from its virtual pit

When the bot selects any pit at indices 6–11, this initializes pos one slot too early relative to the virtual board used below, where positions above the player store map back with pos - 1. As a result, the first stone from a bot move is placed back into the pit that was just emptied and the final-position logic for extra turns/captures is shifted, so bot moves do not follow the stated Mancala rules.

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