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 Game Reset and Scoreboard Logic in TicTacToe Game #719

Open
Amansingh0807 opened this issue Feb 12, 2025 · 1 comment
Open

Fix Game Reset and Scoreboard Logic in TicTacToe Game #719

Amansingh0807 opened this issue Feb 12, 2025 · 1 comment

Comments

@Amansingh0807
Copy link

The game resets immediately after displaying the result modal, not giving players enough time to view the result. Additionally, the overall winner logic doesn't handle the case where no games have been played, and the scoreboard doesn't reset properly in some cases.

Issues Identified:

  • Game resets instantly after showing the result modal.
  • Overall winner message shows "It's a Draw Overall!" even if no games were played.
  • Scoreboard doesn't update correctly when reset.

Expected Behavior:

  • The game should reset only after closing the result modal.
  • If no games were played, show "No games played yet!" instead of a draw message.
  • Scoreboard should reset properly with updated scores.

Fixes Implemented:

  • Delayed game reset until the modal is closed.
  • Improved winner logic to handle the no-games-played case.
  • Fixed scoreboard reset to reflect accurate scores.
Copy link
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! 😊

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

No branches or pull requests

1 participant