A classic card matching memory game built with modern web technologies. Flip cards, find pairs, and test your memory before you run out of attempts!
- Interactive card flipping animations.
- Match pairs of identical cards.
- Limited attempts (10) to add a challenge.
- Tracks the number of attempts made.
- Displays game status messages (Start, Playing, Win, Game Over).
- Celebratory fireworks animation upon winning using
canvas-confetti
. - Responsive design.
- HTML5
- CSS3
- TypeScript
- Vite (as the build tool/dev server)
- canvas-confetti (for the winning animation)
[https://gustedeveloper.github.io/Pair-hunters/]
To run this project locally:
- Clone the repository:
git clone [email protected]:gustedeveloper/Pair-hunters.git cd Pair-hunters
- Install dependencies:
npm install # or # yarn install
- Run the development server:
npm run dev # or # yarn dev
- Open your browser and navigate to the local URL provided by Vite (usually
http://localhost:5173
).
- Click the "Start Game" button.
- Click on any card to flip it over.
- Click on a second card to see if it's a match.
- If the cards match, they stay face up.
- If they don't match, they will flip back face down after a short delay, and your attempt count increases.
- Continue matching pairs until all cards are face up.
- You win if you match all pairs within 10 attempts.
- You lose if you run out of attempts before matching all pairs.
- Click "Start Game" again to play a new round.
- gustedeveloper - [https://www.linkedin.com/in/gustegaubaite/]