A simple, interactive Memory Card Game built with HTML, CSS, and Vanilla JavaScript. The objective of the game is to match pairs of cards with the same color.
- Interactive Gameplay: Click on cards to flip them and reveal their colors.
- Match Logic: The game checks if two flipped cards match. If they do, they stay flipped; otherwise, they flip back after a short delay.
- Win Condition: Once all 8 pairs (16 cards) are matched, a congratulatory message is displayed.
- Responsive Design: The game layout adapts to both desktop and mobile screens for a seamless experience.
- Restart Functionality: A "New Game" button allows players to instantly reset the board, shuffle the colors, and start over at any time.
- HTML5: For the basic structure of the game board and cards.
- CSS3: For styling, responsive design (Flexbox and Grid), and 3D flip animations using
transformproperties. - JavaScript: For the game logic, DOM manipulation, handling click events, randomizing card colors, and checking for matches.
- Clone or download this repository.
- Open the
index.htmlfile in any modern web browser. - Click on any card to flip it and reveal its hidden color.
- Click on a second card to try and find a match.
- If the colors match, the cards will remain face up.
- If they don't match, the cards will flip back over after a brief delay.
- Continue flipping cards until you have successfully matched all pairs to win the game.
- Click the "New Game" button to shuffle the cards and play again.
Made by Gopal Kundu


