Powan55 / Trivial-Trivia

1 stars 0 forks source link

Bug: Game Summary Displays Incorrect Data #23

Closed Powan55 closed 4 months ago

Powan55 commented 4 months ago

Currently, the game summary feature in our application is displaying incorrect or placeholder data, showing "Game Summary" without providing relevant user performance statistics. This is a critical issue as it misleads users and fails to deliver the intended functionality of providing feedback on their performance. The game summary should accurately reflect the user's performance, including the number of questions answered correctly and incorrectly, along with the final score when the user chooses to exit the game.

Powan55 commented 4 months ago

@Uttamb7 Can you please investigate this issue?

To recreate the issue of the game summary displaying incorrect data, follow these steps:

  1. Start a New Game Session as Logged-in User:
  2. Answer Questions Correctly and Incorrectly:
  3. Choose to Exit the Game once the Game is over
  4. Observe the Displayed Game Summary
Uttamb7 commented 4 months ago

@Powan55 When I looked into the issue, it became clear to me that there were no variables or functions in place to track the right and wrong answers, which is why they weren't being displayed correctly.

Plan:

Once implementing these features I expect to see "Correct" if the answer to a question is right and "Incorrect ;(" if it's wrong. Upon exiting the game, I should receive a summary of my performance, including my score, the number of right answers, and the number of wrong answers.

Powan55 commented 4 months ago

Please implement this changes and create the pull request