Currently, when the game ends, an unattractive alert is displayed to the player. Enhance the user experience by replacing the existing alert with a visually appealing popup that includes the player's score and highest score achieved. Additionally, if the player achieves a new highest score, include an indication of this achievement. Finally, add a "Play Again" button to the popup to allow players to easily restart the game without refreshing the page.
Tasks:
Design and implement a visually appealing popup for the game over screen.
Display the player's score achieved in the popup.
Include an indication if the player achieves a new highest score.
Add a "Play Again" button to the popup to enable quick game restart.
Resolution:
Solve the tasks outlined above and submit a pull request referencing this issue ID (#ISSUE_ID) with a demonstration of the improved game over popup.
Description:
Currently, when the game ends, an unattractive alert is displayed to the player. Enhance the user experience by replacing the existing alert with a visually appealing popup that includes the player's score and highest score achieved. Additionally, if the player achieves a new highest score, include an indication of this achievement. Finally, add a "Play Again" button to the popup to allow players to easily restart the game without refreshing the page.
Tasks:
Resolution:
Solve the tasks outlined above and submit a pull request referencing this issue ID (#ISSUE_ID) with a demonstration of the improved game over popup.