Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Currently, there is no way of restarting Minesweeper after losing or beating the game other than to refresh the entire page, which may be unintuitive to new players.
Describe the solution you'd like
Add a button that appears when a game ends. After a loss, the button could display "Restart", and after a win, it could display "Play Again". Selecting the button would reset the game board and start a new game without requiring the player to refresh the page.
A possible implementation would be:
- Detect when the player reaches a win or loss state.
- Display a restart/play again button alongside the end-of-game message.
- When the button is clicked, reset the game state variables, regenerate the board, and hide the button until the next game ends.
Select program in which you are contributing
Other
Code of Conduct
Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Currently, there is no way of restarting Minesweeper after losing or beating the game other than to refresh the entire page, which may be unintuitive to new players.
Describe the solution you'd like
Add a button that appears when a game ends. After a loss, the button could display "Restart", and after a win, it could display "Play Again". Selecting the button would reset the game board and start a new game without requiring the player to refresh the page.
A possible implementation would be:
Select program in which you are contributing
Other
Code of Conduct