Skip to content

Fix sound button duplication#136

Open
abhiram-shaji wants to merge 5 commits intoyelynn1:masterfrom
abhiram-shaji:fix-sound-button-duplication
Open

Fix sound button duplication#136
abhiram-shaji wants to merge 5 commits intoyelynn1:masterfrom
abhiram-shaji:fix-sound-button-duplication

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