Skip to content

[Enhancement]: Add Restart/Play Again button to Minesweeper #5256

Open

Description

@JonasCookBeavs

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

Activity

  1. kunjgit commented on May 29, 2026

    @kunjgit
    Owner

    Hey @JonasCookBeavs !
    Thank you for raising an issue 💗
    You can self assign the issue by commenting /assign in comment 😀
    Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
    Don’t Forget to ⭐ our GameZone🎮
    Make sure you join our Discord🕹️

  2. JonasCookBeavs commented on Jun 1, 2026

    @JonasCookBeavs
    Author

    /assign

  3. Harshada766 commented on Jul 19, 2026

    @Harshada766

    Assign

  4. heringston commented on Nov 1, 2026

    @heringston

    /assign

  5. kunjgit commented on Nov 1, 2026

    @kunjgit
    Owner

    Hey @heringston ! , This issue is already assigned to @JonasCookBeavs. 💗
    You can work on other issues 🚀
    If there is anything wrong you can contact us on Discord🕹️👀

  6. heringston commented on Nov 1, 2026

    @heringston

    Hey @kunjgit ...Its been 5 months since the issue was assigned ....if it is still not resolved , I can work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions