You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Enhancement]: Add sound effects to Simon Says Game , no audio feedback on button press or sequence #2645
Describe the bug
The Simon Says Game currently has zero audio feedback at any point during gameplay. A core part of the classic Simon Says experience is that each color button plays a distinct tone,both when the computer flashes the sequence and when the user clicks a button. Without sound, the game is significantly harder to follow and feels incomplete and boring.
To Reproduce
Steps to reproduce the behavior:
1.Go to https://100-days-100-web-project.vercel.app/public/Simon_Says_Game/index.html
2.Click Start to begin the game
3.Watch the computer flash the color sequence
4.Click any color button during your turn
5.Notice there is zero sound at any point , no tone on flash, no tone on click, no buzzer on wrong move
Expected behavior
1.Each color button should play a unique tone both when the computer flashes it during the sequence and when the user clicks it.
2.A harsh buzzer type sound should play when a user clicks on a wrong button/color.
Expected tones:
Red - 261 Hz (C4)
Yellow - 329 Hz (E4)
Green - 392 Hz (G4)
Purple -196 Hz (G3)
Wrong move - 120 Hz sawtooth buzzer
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Windows 11
Browser: Brave 1.90.122
Chromium: 148.0.7778.167 (Official Build) (64-bit)
Smartphone (please complete the following information):
N/A — reproduced on desktop only
Additional context
This fix uses the browser's built in Web Audio API,I am not going to use any external libraries or any type of audio files to implement this feature. Changes are to be made inside script.js there wont be any change in the css or html file.
Summary of changes to be made:
1.Add playSound(color) function at top of script.js.
2.Add playWrongSound() function at top of script.js.
3.Call playSound() inside gameFlash() when computer flashes a button.
4.Call playSound() inside btnPress() when user clicks a button.
5.Call playWrongSound() inside checkAns() when wrong button is pressed.
Thank you for raising this issue! We'll look into it as soon as possible. Please ensure that the issue is not duplicate, and you read CONTRIBUTING.md carefully. Your contributions are highly appreciated! 😊
Hello @dhairyagothi, I would like to work on this issue.
I have already identified the fix and it's ready to implement.
Could you please assign this to me? Thank you..
Activity
github-actions commentedon May 20, 2026
Thank you for raising this issue! We'll look into it as soon as possible. Please ensure that the issue is not duplicate, and you read CONTRIBUTING.md carefully. Your contributions are highly appreciated! 😊
vaibhav051422-collab commentedon May 20, 2026
Hello @dhairyagothi, I would like to work on this issue.
I have already identified the fix and it's ready to implement.
Could you please assign this to me? Thank you..
github-actions commentedon Sep 25, 2026
Hello @vaibhav051422-collab! Your issue #2645 has been closed. Thank you for your contribution!