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