The JavaScript Memory Game is a classic card-matching game where the player needs to match pairs of cards. It's a fun and interactive project to enhance your JavaScript, HTML, and CSS skills.
- 4x4 grid of cards
- Timer to track game duration
- Moves counter
- Winning message
- Restart button
-
Clone or download the repository:
git clone https://github.com/dev-alihasan/memory-game.git
-
Open the
index.html
file in your web browser. -
Play the memory game by clicking on the cards to reveal their content and match pairs.
-
The game displays the number of moves and the time it takes to complete the game.
-
When all pairs are matched, a congratulatory message is displayed.
-
Click the "Restart Game" button to play again.
You can customize the game by modifying the following variables in the index.html
file:
gridSize
: Adjust the size of the game grid (default is 16 for a 4x4 grid).
Feel free to explore the code and make additional customizations based on your preferences.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.