Welcome to the Memory Game repository! This is a classic memory game implementation using HTML, CSS, and JavaScript. The objective of the game is to find matching pairs of cards by flipping them over one by one.
- A grid of cards that are randomly shuffled at the beginning of the game.
- Cards can be flipped over to reveal their hidden symbols.
- The player can only flip two cards at a time.
- If the two flipped cards match, they disappear.
- If the two flipped cards do not match, they are flipped back after an alert.
- A congratulations alert pops up with game score is displayed when all cards are matched.
- Page reloads once all the cards match.
- HTML
- CSS
- JavaScript
To play the game locally, follow these steps:
-
Clone the repository:
git clone https://github.com/OzzDm/MemoryGame.git
-
Navigate to the project directory:
cd memory-game
-
Open the
index.html
file in your preferred web browser.
- When you open the game, you will see a grid of facedown cards.
- Click on any card to flip it over and reveal the symbol.
- Flip another card and try to find a matching pair.
- If the two cards match, they will remain open.
- If the two cards do not match, they will flip back after a short delay.
- Continue flipping cards and finding matching pairs until all cards are open.
- The game will display a congratulations popup with your score when you win.
- The game restarts automatically once all the cards are matched.
Contributions are welcome! If you find any bugs or want to add new features to the game, feel free to open an issue or submit a pull request.
When contributing, please follow these guidelines:
- Fork the repository and clone it to your local machine.
- Create a new branch for your feature or bug fix.
- Commit your changes with descriptive commit messages.
- Push your branch to your forked repository.
- Open a pull request explaining the changes you made.
- The Memory Game project is inspired by the classic concentration game.
- Special thanks to the contributors who have helped make this project better.
Enjoy the game! If you have any questions or feedback, feel free to reach out.