Skip to content

Add "Play Again" Button and Improve Alert Handling#55

Open
OnePieceXX wants to merge 1 commit intokubowania:masterfrom
OnePieceXX:Scroll
Open

Add "Play Again" Button and Improve Alert Handling#55
OnePieceXX wants to merge 1 commit intokubowania:masterfrom
OnePieceXX:Scroll

Conversation

@OnePieceXX
Copy link
Copy Markdown

This pull request enhances the user experience of the memory game by adding a "Play Again" button and improving the handling of alerts for game feedback.

Changes Made:
JavaScript (app.js):
Added a function Again() to dynamically create and append a "Play Again" button at the end of the game.
Replaced alert() calls with comments to streamline user feedback and avoid disruptive pop-ups.
Updated game logic to call the Again() function upon game completion.

CSS (style.css):
Added styles for the new "Play Again" button, including positioning, background color, text color, font size, and hover effects.
Adjusted the positioning and appearance of the button to integrate smoothly with the game layout.

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.

2 participants