Skip to content

πŸ› [Bug]: Reset button does not clear stats in Rock Paper ScissorsΒ #407

@avzuha

Description

@avzuha

Bug Description
The Reset button in the Rock Paper Scissors project partially works β€” it correctly resets the result message back to "Make your choice". However, the Wins, Losses, and Current Streak counters are not cleared. A user hitting Reset reasonably expects a full fresh start, but their stats carry over, making the reset feel incomplete and misleading.

After clicking "Reset Game":
Expected: Result message clears (already works) AND Wins / Losses / Current Streak all reset to 0
Actual: Result message clears but Wins / Losses / Current Streak retain their previous values ❌

Proposed Fix
In web-app/js/projects.js, find the Rock Paper Scissors reset handler and add the missing stat resets alongside the result clear.
Once merged to main, Vercel will auto-redeploy and the fix will reflect on the live site.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions