Sound effects toggle does nothing: no audio files are in the repository

未關閉
#28 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
javascript
領域
frontend

研究方向

Start with js/config.js and js/utils.js to trace the configured sound paths and playSound, then inspect index.html and the game-end handling. Check the existing README and roadmap claims against the shipped behavior. Done means the sound toggle works for all listed events or is hidden, and the README and roadmap accurately describe the result.

由索引模型根據 Issue 內容生成。

描述

bug good first issue severity: low

Summary

The settings panel has a "Sound effects" toggle and the README lists sound as a feature, but assets/sounds/ does not exist. Turning the toggle on gives no sound and one failed request per move.

Where

  • js/config.js:38-45 (CONFIG.ASSETS.SOUNDS paths)
  • js/utils.js:184-193 (playSound, failure only logged)
  • index.html:50-56 (the toggle)
  • README.md:89, README.md:106, README.md:164 (feature claims); README.md:295 and CHANGELOG.md:13 say the files still need adding
  • docs/ROADMAP.md:71 (marked done)

Impact

Users enable the toggle and hear nothing. GAME_END is configured but never played.

Steps to reproduce

  1. Enable "Sound effects".
  2. Make a move. No audio; the network tab shows a failed request for assets/sounds/move.mp3.

Suggested fix

Either add six small, permissively licensed audio files, or synthesize short tones with the Web Audio API in playSound (no binary assets needed). Until then, hide the toggle and correct the README and ROADMAP lines. Play the game-end sound on checkmate and stalemate.

Acceptance criteria

  • Enabling the toggle produces sound for move, capture, check, castle, promotion and game end, or the toggle is hidden
  • README and ROADMAP match what ships

Getting started

  • Relevant files: js/config.js, js/utils.js, index.html, README.md
  • How to run tests: npm install, then npm test and npm run lint
  • Related docs: docs/ARCHITECTURE.md, .github/CONTRIBUTING.md

Filed by repo-audit/full-audit at 8a2c86c. Severity: low. Effort: S. audit-key: bug|js/config.js|ASSETS.SOUNDS

主要語言
JavaScript
星號
4
分支
2
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Static_Chess 的其他 Issue

查看 TMHSDigital/Static_Chess 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。