Stale code comments, and README gaps on promotion, undo and keyboard play
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 83/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
- Domain
- documentation, game-dev
Research direction
Read the listed comments in js/game.js, js/utils.js, js/config.js and js/main.js, then compare them with the referenced code and README sections. Update or remove each stale comment and document queen-only promotion, Undo and keyboard controls in README.md under the indicated sections. Run npm test and npm run lint; done when every listed item is corrected.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TMHSDigital/Static_Chess
-
enhancement good first issue severity: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TMHSDigital/Static_Chess#53 ·
-
documentation good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TMHSDigital/Static_Chess#49 ·
-
documentation severity: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TMHSDigital/Static_Chess#47 ·
-
documentation good first issue severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TMHSDigital/Static_Chess#46 ·
-
documentation good first issue severity: low
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
TMHSDigital/Static_Chess#45 ·
All issues in TMHSDigital/Static_Chess
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
good first issue tests
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug role: dev-lead
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
briangwalker/TrussExplorer#424 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
eliasstravik/herdr-projects#1032 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100