This is a simple memory game where players flip cards to find matching pairs. The game is built using HTML, CSS, and JavaScript (DOM manipulation).
- Click on a card to flip it over.
- Click on another card to find a matching pair.
- If the cards match, they will remain face-up. If they do not match, they will flip back over after a short delay.
- The game is won when all pairs are found.
- Click the "Restart Game" button to shuffle the cards and start a new game.
- Clone or download this repository.
- Open the
index.html
file in a web browser.
- HTML: Structure of the game.
- CSS: Styling and responsive design.
- JavaScript: Game logic, including shuffling, card flipping, and matching logic.
- Responsive design: Works well on both desktop and mobile devices.
- Shuffle function: Randomizes card positions at the start of the game.
- Restart function: Resets the game board and shuffles the cards.
- Clean, well-documented code.
This project contains everything needed to set up and play a basic memory game. The game is responsive, features a shuffle function, handles game logic like matching pairs, and includes a restart function to reset the game.