Skip to content

Anas-Sd/FLIP---2---WIN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿƒ FLIP 2 WIN

A Fun & Interactive Memory Card Matching Game

Live Demo License: MIT GitHub Stars

Flip the cards. Match the pairs. Test your memory. ๐Ÿง 

HTML5 CSS3 JavaScript Vercel


๐Ÿ“– About

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!


โœจ Features

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

๐ŸŽฎ How to Play

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 ๐Ÿ†

๐Ÿ› ๏ธ Tech Stack

๐Ÿ—๏ธ Structure ๐ŸŽจ Styling โšก Logic ๐Ÿš€ Deployment
HTML5 CSS3 Vanilla JavaScript Vercel

๐Ÿ—๏ธ System Architecture

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

๐Ÿง  Core Concepts

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

๐Ÿ“‚ Project Structure

flip-2-win/
โ”‚
โ”œโ”€โ”€ index.html          # Game layout & structure
โ”œโ”€โ”€ style.css           # Styling, animations & responsiveness
โ”œโ”€โ”€ script.js           # Game logic, shuffle, matching & state
โ””โ”€โ”€ README.md

๐Ÿš€ Getting Started

# 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.html

No dependencies. No build tools. Just open and play! ๐ŸŽฎ


๐Ÿ”ฎ Roadmap

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

๐Ÿค Contributing

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.


๐Ÿ“ฌ Contact

Portfolio LinkedIn Gmail


โš–๏ธ License

Distributed under the MIT License. See LICENSE for details.


โญ If you enjoyed playing, star the repo!

Made with โค๏ธ and ๐Ÿง  by Syed Anas

About

๐Ÿƒ A JavaScript-based Memory Card Matching Game featuring ๐Ÿ”€ shuffle logic, โญ score tracking, โค๏ธ life system, and โœจ smooth flip animations. Built using ๐Ÿงฑ HTML, ๐ŸŽจ CSS, and โšก DOM manipulation to practice core frontend and ๐ŸŽฎ game logic concepts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors