Skip to content

Mke5/memory-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Game

Overview

This is a simple memory card matching game where players flip over pairs of cards to find matching images. The objective is to match all pairs.

Features

  • A grid of shuffled cards.
  • Cards flip on click, revealing an image.
  • If two selected cards match, they remain face-up; otherwise, they flip back.
  • Score tracking to count successful matches.
  • A restart button to reset the game.
  • Responsive and visually appealing design.

How to Play

  1. Click on a card to reveal the image.
  2. Click on a second card to try to find its matching pair.
  3. If the cards match, they stay face-up.
  4. If the cards do not match, they flip back after a short delay.
  5. Continue until all pairs are matched.
  6. The game ends when all pairs are revealed, and a "Game Over!" alert is displayed.
  7. Click the "Restart" button to play again.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Installation & Setup

  1. Clone the repository:
    git clone https://github.com/Mke5/memory-game.git
  2. Navigate to the project directory:
    cd memory-game
  3. Open index.html in your browser.

File Structure

memory-game/
│── assets/           # Contains game images
│── index.html        # Main HTML file
│── style.css         # Stylesheet
│── index.js          # JavaScript game logic
│── README.md         # Project documentation

Future Enhancements

  • Add difficulty levels (more/fewer cards).
  • Implement a timer to track completion time.
  • Improve animations and sound effects.

License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published