Skip to content

Fix #5256 - Add restart/again button to Minesweeper#5259

Open
lucaslscaixeta wants to merge 7 commits into
kunjgit:mainfrom
lucaslscaixeta:feat/issue-5256-restart-button
Open

Fix #5256 - Add restart/again button to Minesweeper#5259
lucaslscaixeta wants to merge 7 commits into
kunjgit:mainfrom
lucaslscaixeta:feat/issue-5256-restart-button

Conversation

@lucaslscaixeta

Copy link
Copy Markdown

PR Description 📜

This pull request implements the restart/again functionality for the Minesweeper game.

Summary

  • Added a restart button to the game interface.
  • Implemented game reset functionality without requiring a page refresh.
  • Refactored the board initialization logic for better code organization.
  • Improved the layout and visibility of the flag and restart buttons.
  • Updated the restart button text based on the game outcome:
    • Restart after a loss.
    • Again after a win.

Fixes #5256


Mark the task you have completed ✅

  • I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
  • I have performed a self-review of my own code or work.
  • My changes generate no new warnings.
  • I have followed the proper naming conventions described in the CONTRIBUTING GUIDELINE.

Testing

  • Verified that the restart button appears after losing.
  • Verified that the button displays "Again" after winning.
  • Verified that clicking the button resets the board and starts a new game.
  • Verified that the restart button is hidden while a game is in progress.

@kunjgit

kunjgit commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Thank you @lucaslscaixeta ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants