Add logic to end screen text #65
Labels
good first issue
Good for newcomers. Hop onboard!
status: accepting prs
If you can resolve this issue, please send a PR!
type: cleanup
Technical debt, testing, or similar improvements
Currently, when a player hits the end screen they'll always see the text: "So Close!".
There should be some logical check for how the current score compares to the existing high score (if it exists at all) and display matching text.
For instance:
If the scores match ("Wow! Same high score!")
If a new high score ("Amazing, new high score!")
If less than high score ("So Close!") or ("Maybe next time")
The text can also be randomly chosen from an array of possible sayings.
The text was updated successfully, but these errors were encountered: