A fun and interactive Memory Matching Game built using React + Vite. Flip cards, match pairs, and test your memory skills!
- ๐ด Flip cards with smooth UI
- ๐ Random card shuffling every game
- ๐งฉ Match logic with score tracking
- ๐ Move counter
- ๐ Prevents rapid clicks during evaluation
- ๐ Win message when all cards are matched
- โป๏ธ Reset / Restart game anytime
- React (Functional Components + Hooks)
- Vite (Fast development build tool)
- CSS (Custom styling)
memory-cards/
โ
โโโ public/
โโโ src/
โ โโโ assets/ # Images & icons
โ โโโ components/ # UI Components
โ โ โโโ Card.jsx
โ โ โโโ GameHeader.jsx
โ โ โโโ WinMessage.jsx
โ โโโ hooks/ # Custom logic
โ โ โโโ useGameLogic.js
โ โโโ App.jsx # Main component
โ โโโ index.css # Styles
โ โโโ main.jsx # Entry point
โ
โโโ package.json
โโโ README.md
-
Cards are shuffled randomly at the start.
-
Player clicks a card โ it flips.
-
Player selects a second card:
- โ If both match โ they stay flipped
- โ If not โ they flip back after a short delay
-
Moves are counted for every attempt.
-
Game ends when all pairs are matched.
git clone https://github.com/your-username/memory-cards.git
cd memory-cardsnpm installnpm run dev- Click on any card to flip it
- Match all pairs to win
- Use Reset button to restart the game
![Memory Card Game Screenshot]
- โฑ๏ธ Timer feature
- ๐ High score system
- ๐๏ธ Difficulty levels (easy/medium/hard)
Built as a learning project to practice:
- React Hooks
- State management
- Component structure
- Game logic implementation
This project is open-source and free to use.
Made with โค๏ธ by Dishitha ๐ Feel free to improve and expand it!
