Skip to content

dev-alihasan/Memory-Game-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Introduction

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.

Features

  • 4x4 grid of cards
  • Timer to track game duration
  • Moves counter
  • Winning message
  • Restart button

Usage

  1. Clone or download the repository:

    git clone https://github.com/dev-alihasan/memory-game.git
  2. Open the index.html file in your web browser.

  3. Play the memory game by clicking on the cards to reveal their content and match pairs.

  4. The game displays the number of moves and the time it takes to complete the game.

  5. When all pairs are matched, a congratulatory message is displayed.

  6. Click the "Restart Game" button to play again.

Customization

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.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.