Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sound button duplication #136

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

abhiram-shaji
Copy link

Sound Button Duplication #132

If you win the game and undo the last move, then win again, the sound button duplicates itself.

Solution

The solution involves modifying the checkWinner function to check if the sound button already exists before creating a new one. This prevents the duplication of the sound button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant