Skip to content

[Enhancement]: Add sound effects to Simon Says Game , no audio feedback on button press or sequence #2645

Closed

Description

@vaibhav051422-collab

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.

Labels: enhancement gssoc Gssoc'26 level2

Activity

  1. github-actions commented on May 20, 2026

    @github-actions
    Contributor

    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! 😊

  2. vaibhav051422-collab commented on May 20, 2026

    @vaibhav051422-collab
    Author

    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..

  3. github-actions commented on Sep 25, 2026

    @github-actions
    Contributor

    Hello @vaibhav051422-collab! Your issue #2645 has been closed. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions