Stale code comments, and README gaps on promotion, undo and keyboard play
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 83/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
阅读js/game.js、js/utils.js、js/config.js和js/main.js中列出的注释,然后将它们与所引用的代码和README章节进行对照。更新或删除每条过时的注释,并在README.md指定的章节中说明只能升变为后、Undo和键盘控制。运行npm test和npm run lint;所有列出的项目都已修正时即为完成。
由索引模型根据 Issue 内容生成。
描述
Summary
Several comments contradict the code, and the README does not tell players about two limits of the current build.
Where
-
js/game.js:15: "For undo and repetition detection". No repetition detection exists. -
js/game.js:667-668,:696-698: "Using plain objects here" and "If Piece was a class".Pieceis a constructor (js/pieces.js:22) and promotion callsnew Piece(...). -
js/game.js:796-811:generateNotationcarries a disambiguation TODO, but live notation comes fromgenerateNotationWithDisambiguation. -
js/utils.js:221-223: "Add more utility functions as needed, e.g. Deep cloning".deepCloneis already at:60. -
js/utils.js:176-177: "Will be used when sound effects feature is enabled". It is already called fromgame.js. -
js/config.js:10: "Feature flags (for future enhancements)" sits aboveDRAG_AND_DROP: true. -
js/main.js:83-85: "initializes the skeleton implementations". Drag and drop is the only module started, and it is complete. -
README.md:72: lists pawn promotion with no note that it always promotes to a queen (js/game.js:223). -
README.md:150-165: "How to Play" omits the Undo button and the keyboard controls.
Suggested fix
Fix or remove each comment. Add to the README: promotion is always to a queen, an Undo and keyboard-controls line in "How to Play".
Acceptance criteria
- Each item above is corrected
Getting started
- Relevant files:
js/game.js,js/utils.js,js/config.js,js/main.js,README.md - How to run tests:
npm install, thennpm testandnpm run lint - Related docs:
docs/ARCHITECTURE.md,.github/CONTRIBUTING.md
Filed by repo-audit/full-audit at 8a2c86c. Severity: low. Effort: S. audit-key: documentation|js/game.js|stale-comments
- 主要语言
- JavaScript
- 星标
- 4
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TMHSDigital/Static_Chess 的其他 Issue
-
enhancement good first issue severity: medium
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Static_Chess#53 ·
-
documentation good first issue severity: low
难度 2/5 1-3 小时 新手友好度 72/100
TMHSDigital/Static_Chess#49 ·
-
documentation severity: medium
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Static_Chess#47 ·
-
documentation good first issue severity: low
难度 2/5 1-3 小时 新手友好度 82/100
TMHSDigital/Static_Chess#46 ·
-
documentation good first issue severity: low
难度 1/5 1-3 小时 新手友好度 82/100
TMHSDigital/Static_Chess#45 ·
查看 TMHSDigital/Static_Chess 的全部 Issue
相似的 Issue
-
good first issue tests
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 90/100
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
难度 2/5 1-3 小时 新手友好度 65/100
growilabs/growi#12246 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
TMHSDigital/Free-Game-Dev-Assets#301 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100