Displays the previous scores of up to 3 previous games in the win screen:
This uses the browser's SessionStorage so the history gets wiped out if the user closes the tab. I think that's okay, but we could also use LocalStorage instead, that can keep the data across sessions (however it's not as easy to revert to an initial state - we would need a button on the UI for that).
Also added the ability to dismiss the welcome screen, it was annoying after a few games:
Also corrected the bug related to being able to go back to the game after the win screen has been shown.
Closes #99
Displays the previous scores of up to 3 previous games in the win screen:
This uses the browser's
SessionStorage
so the history gets wiped out if the user closes the tab. I think that's okay, but we could also useLocalStorage
instead, that can keep the data across sessions (however it's not as easy to revert to an initial state - we would need a button on the UI for that).Also added the ability to dismiss the welcome screen, it was annoying after a few games:
Also corrected the bug related to being able to go back to the game after the win screen has been shown.