A Fun & Interactive Memory Card Matching Game
Flip the cards. Match the pairs. Test your memory. ๐ง
Flip 2 Win is a classic memory card matching game built with pure HTML, CSS, and JavaScript. No frameworks, no dependencies โ just clean vanilla code.
Flip two cards at a time, find all matching pairs, and try not to run out of lives!
| Feature | Description |
|---|---|
| ๐ด Flip Animation | Smooth CSS card flip transitions |
| ๐ Randomized Shuffle | Cards are shuffled every new game |
| ๐ฏ Score Tracking | Earn points for every matched pair |
| โค๏ธ Lives System | Limited lives โ match wisely! |
| ๐ Restart Option | Reset and play again anytime |
| โก Responsive UI | Clean, smooth, distraction-free interface |
Step 1 โ Click a card to flip it
Step 2 โ Flip a second card
Step 3 โ Match? โ Cards stay open + earn points โ
Step 4 โ No match? โ Lose a life + cards flip back โ
Step 5 โ Match all pairs before lives run out to WIN ๐
| ๐๏ธ Structure | ๐จ Styling | โก Logic | ๐ Deployment |
| HTML5 | CSS3 | Vanilla JavaScript | Vercel |
User Click โ Event Listener โ Flip Card โ Check Match
โ
โโโโโโโโโโโดโโโโโโโโโโ
โผ โผ
โ
Match โ No Match
Score++ Lives--
Cards Stay Cards Flip Back
โ โ
โโโโโโโโโโโฌโโโโโโโโโโโโ
โผ
All Matched? โ ๐ WIN
Lives = 0? โ ๐ GAME OVER
| Concept | Usage |
|---|---|
| ๐ Array Shuffle | Fisher-Yates algorithm for card randomization |
| ๐ฏ Event Listeners | Click-based card flip interaction |
| โฑ๏ธ setTimeout | Delay before unmatched cards flip back |
| ๐งฉ DOM Manipulation | Dynamic card rendering & state updates |
| ๐๏ธ Game State | Score, lives, matched pairs tracking |
flip-2-win/
โ
โโโ index.html # Game layout & structure
โโโ style.css # Styling, animations & responsiveness
โโโ script.js # Game logic, shuffle, matching & state
โโโ README.md
# Clone the repository
git clone https://github.com/Anas-Sd/Flip-2-Win.git
# Navigate to the project
cd Flip-2-Win
# Open in browser
open index.html
# or simply double-click index.htmlNo dependencies. No build tools. Just open and play! ๐ฎ
| Status | Feature |
|---|---|
| โ | Core matching game |
| โ | Score & lives system |
| โ | Card shuffle & animations |
| ๐ | โฑ๏ธ Timer mode |
| ๐ | ๐ Leaderboard system |
| ๐ | ๐ Sound effects |
| ๐ | ๐จ Difficulty levels (Easy / Medium / Hard) |
| ๐ | ๐ฑ Enhanced mobile optimization |
Contributions are welcome!
1. Fork the repository
2. Create your feature branch โ git checkout -b feature/NewFeature
3. Commit your changes โ git commit -m 'Add NewFeature'
4. Push to the branch โ git push origin feature/NewFeature
5. Open a Pull Request
๐ Please open an issue before major feature proposals.
Distributed under the MIT License. See LICENSE for details.
โญ If you enjoyed playing, star the repo!
Made with โค๏ธ and ๐ง by Syed Anas