feat(classic-games): 新增 Mini Mancala 小游戏#997
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: 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; |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
File
Validation
Audit
History Check