Memory Game A classic memory card game built with HTML, CSS, and JavaScript. The goal of the game is to find all matching pairs of cards. This project demonstrates basic JavaScript functionality for creating interactive web applications.
Features Interactive Card Flip: Click on cards to flip them and reveal images. Match Detection: Automatically checks for matching pairs and handles mismatches. Score Tracking: Displays the number of matched pairs. Sound Effects: Includes sound effects for card flips, matches, and mismatches. Winning Condition: Shows a congratulatory message when all pairs are matched. How to Play Start the Game: Open the game in your web browser. The game board will be displayed with cards facing down. Flip Cards: Click on a card to flip it over and reveal its image. Find Matches: Click on another card to reveal its image. If the two cards match, they will remain face-up; if not, they will flip back over after a short delay. Win the Game: Match all pairs of cards to win. A congratulatory message will be displayed when you complete the game. Project Structure JavaScript (script.js): Contains the game logic including creating the board, handling card flips, checking for matches, and updating the score. Images: Includes images for cards and background. img/blank.png: The image shown on cards before they are flipped. img/back.png: The image shown when a card is matched. Various images for different card types (cheeseburger.png, fries.png, etc.). Sound Effects: flip: Sound played when a card is flipped. unMatch: Sound played when two cards do not match. Match: Sound played when two cards match. Win: Sound played when the game is won. How to Run Clone the Repository: bash Copy code git clone https://github.com/mohitpatwari/memory-game.git Open the Project: Open the index.html file in your web browser to start playing the game. Credits Game Logic: Implemented by [Mohit Patwari] Images and Sounds: You can replace the default images and sounds with your own assets to customize the game.