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

📃: adding matching pair game #2110

Closed
priyashuu opened this issue Nov 5, 2024 · 1 comment · Fixed by #2379
Closed

📃: adding matching pair game #2110

priyashuu opened this issue Nov 5, 2024 · 1 comment · Fixed by #2379
Assignees
Labels

Comments

@priyashuu
Copy link
Contributor

🔴 Title :Matching pair game
🔴 Tech stack :html, css ,js,
🔴 Objective :
Game logic and basic description

Initialization
Card Generation: Duplicate a set of symbols to create pairs, then shuffle.
Grid Setup: Dynamically create card elements and append them to the game container.
Card Flipping
Event Listener: Each card has an event listener to trigger the flip.
Flipping Logic: On click, reveal the card symbol. Store the first card, then check for a match with the second card.
Matching Logic
Match Check: Compare the symbols of two flipped cards. If they match, keep them face-up; if not, flip them back down after a brief delay.
🔴 Summary :
📸 Screenshots

Screenshot 2024-07-16 165331


✅ Details to Include When Taking the Issue:
Name :
Participant Role (Specify the Open Source Program name, e.g., GSSOC, Hacktoberfest, etc.):GSSOC, Hacktoberfest,


Happy Contributing! 🚀

Wishing you all the best on your open source journey. Enjoy! 😎

Copy link

Hello @priyashuu! Your issue #2110 has been successfully closed. ✅ Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants