An open API service indexing awesome lists of open source software.

https://github.com/wizardgeeky/brain-flip

The brain flip is a funny game
https://github.com/wizardgeeky/brain-flip

game-development mind nextjs state-management tailwindcss typescript

Last synced: 3 months ago
JSON representation

The brain flip is a funny game

Awesome Lists containing this project

README

          

## ๐Ÿง  Brain Flip - A Fun Memory Game
Brain Flip is an interactive memory-based game built with Next.js & TypeScript. The game features a 4x4 grid where players must match pairs of hidden emojis. If a pair is selected incorrectly, the images swap positions randomly, making the game more challenging.

![Screenshot 2025-02-18 165052](https://github.com/user-attachments/assets/572c41d4-557c-40bd-928f-7924dec7f557)

## ๐Ÿš€ Features
- โœ… 4x4 Grid Memory Game - Match pairs of hidden emojis.
- โœ… Randomized Grid - The board shuffles at the start.
- โœ… Matching Logic - Matched pairs stay visible.
- โœ… Incorrect Match Penalty - Wrong selections swap positions randomly.
- โœ… Progress Bar - Shows completion percentage with violet color.
- โœ… "You Win" Message - Appears when all pairs are matched.
- โœ… Reset Button - Allows players to restart the game anytime.
- โœ… Responsive Design - Works seamlessly on all screen sizes.

## ๐Ÿ›  Technologies Used
- Next.js (React framework)
- TypeScript (For type safety)
- Tailwind CSS (For styling)

## How to Download & Run the Project
- 1๏ธโƒฃ Clone the Repository
bash
Copy
Edit
git clone https://github.com/WizardGeeky/brain-flip.git
cd brain-flip
- 2๏ธโƒฃ Install Dependencies
bash
Copy
Edit
npm install
- 3๏ธโƒฃ Run the Development Server
bash
Copy
Edit
npm run dev
Now open http://localhost:3000 in your browser to play the game! ๐ŸŽฎ

## ๐ŸŽฏ How to Play?
- Click on a tile to reveal the emoji underneath.
- Select two tiles at a time to find matching pairs.
- If they match, they stay visible.
- If they donโ€™t match, they swap positions after a second.
- Keep going until you match all pairs!
- Track your progress with the violet progress bar.
- Press the Reset button to restart the game anytime.

## ๐Ÿ“œ License
This project is open-source and available under the MIT License.