A simple and fun memory game built with HTML, CSS, and JavaScript. The game involves flipping cards to find matching pairs while enhancing concentration and memory skills. The layout is responsive, and a win animation is triggered when all pairs are matched!
- Responsive Design: Adapts to different screen sizes.
- Card Flipping: Smooth 3D flip animation.
- Match Detection: Cards change color when matched.
- Win Animation: A congratulatory animation when the game is won.
- Restart Functionality: Easily restart the game at any time.
- HTML: Basic structure of the game.
- CSS: Styling and animations for the cards and game layout.
- JavaScript (DOM manipulation): Game logic, including card flipping, matching, shuffling, and restarting.
- Click on a card to flip it.
- Try to find the matching card by flipping another one.
- If the cards match, they will change color and stay flipped.
- If the cards don't match, they will flip back over.
- The game ends when all cards have been matched.
To play locally:
- Clone the repository:
git clone https://github.com/Sarankumar1812/memory-game.git
- Open the
index.htmlfile in any web browser.
The project is deployed using Netlify. You can play the game here.
|-- index.html // The HTML structure of the game
|-- style.css // Styles and animations for the game
|-- script.js // JavaScript logic for the game mechanics
|-- assets/ // Images and icons used in the game
- To modify the appearance of cards, you can update the
.cardclass in thestyle.cssfile. - For custom game logic or to increase the complexity, you can edit
script.js.
- Add difficulty levels (e.g., varying the number of cards).
- Add timer and score-tracking functionality.
- Implement a leaderboard to track players' best times.
Enjoy playing the Memory Game! 🎮
This README file provides a structured overview of your project, explaining its features, technologies used, and installation instructions. You can modify the deployment link and other details according to your specific project needs.