This is a simple memory card matching game where players flip over pairs of cards to find matching images. The objective is to match all pairs.
- A grid of shuffled cards.
- Cards flip on click, revealing an image.
- If two selected cards match, they remain face-up; otherwise, they flip back.
- Score tracking to count successful matches.
- A restart button to reset the game.
- Responsive and visually appealing design.
- Click on a card to reveal the image.
- Click on a second card to try to find its matching pair.
- If the cards match, they stay face-up.
- If the cards do not match, they flip back after a short delay.
- Continue until all pairs are matched.
- The game ends when all pairs are revealed, and a "Game Over!" alert is displayed.
- Click the "Restart" button to play again.
- HTML
- CSS
- JavaScript
- Clone the repository:
git clone https://github.com/Mke5/memory-game.git
- Navigate to the project directory:
cd memory-game
- Open
index.html
in your browser.
memory-game/
│── assets/ # Contains game images
│── index.html # Main HTML file
│── style.css # Stylesheet
│── index.js # JavaScript game logic
│── README.md # Project documentation
- Add difficulty levels (more/fewer cards).
- Implement a timer to track completion time.
- Improve animations and sound effects.
This project is open-source and available under the MIT License.