Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OnePieceXX
Copy link

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