rachelktyjohnson / hktbf22-quiz-app

See the live version here: https://rachelktyjohnson.github.io/hktbf22-quiz-app
1 stars 7 forks source link

Implement scoreboard #4

Closed rachelktyjohnson closed 2 years ago

rachelktyjohnson commented 2 years ago

Wait, how many did I get right?

You must be assigned this issue in order for your Pull Request to be accepted and merged. Please refer to "How to claim an Issue here: https://github.com/rachelktyjohnson/hktbf22-quiz-app/blob/master/CONTRIBUTING.md#how-to-claim-an-issue

Currently, the scoreboard doesn't change and sits at "0/0" no matter how many questions the user goes through. Your task for this issue is to implement it! The first number should represent how many questions have been answered correctly. The 2nd number should represent how many questions the user has gone through. For example, if a user has been asked 3 questions and got 2 of them correct, it should say "Your score: 2/3"

Our recommendation is to do this within the handleInteraction() method in game.js. To be super clean, we also suggest writing another method solely to handle the change and display the score! You may also find it helpful to add some class properties to the Game Class's constructor.

Lyndsayfutrell commented 2 years ago

I'd like to claim this issue! Lyndsay Futrell on slack FSJS tech degree 🥳

rachelktyjohnson commented 2 years ago

@Lyndsayfutrell all yours!