Challenge your memory in this thrilling Rick and Morty universe card game! Click cards to reveal characters, but remember - never click the same card twice! The goal is to achieve the highest score possible by clicking new cards each round.
- Choose your difficulty: Easy (3 cards), Medium (4 cards), or Hard (5 cards)
- Click a card to reveal a Rick and Morty character
- Cards shuffle after each click - remember which characters you've seen!
- Avoid clicking the same character twice - game over if you do!
- Build your score by successfully clicking new characters each round
- Aim for 20 points to achieve the ultimate victory!
- Stunning 3D card animations with interactive hover effects
- Dynamic background video featuring Rick and Morty scenes
- Atmospheric theme music with volume controls
- Responsive design - perfect on mobile, tablet, and desktop
- Three difficulty levels with increasing challenge
- Smart card shuffling keeps you guessing
- Score tracking with best score persistence
- Game over and victory screens with engaging animations
- Play again functionality for endless fun
- Touch-friendly interface designed for mobile gameplay
- Responsive card layouts that adapt to screen size
- Optimized positioning for comfortable mobile experience
- Lightning-fast performance powered by Vite
- Real-time character data from Rick and Morty API
- Smooth animations using CSS transforms and Tailwind
- Modern React 19 with hooks and state management
| Technology | Purpose |
|---|---|
| React 19 | Modern UI framework with latest features |
| Vite | Super-fast build tool and dev server |
| Tailwind CSS | Utility-first styling for responsive design |
| Rick and Morty API | Real character data and images |
| Vercel | Production deployment platform |
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/binit2-1/memory-game.git
# Navigate to project
cd memory-game
# Install dependencies
npm install
# Start development server
npm run devVisit http://localhost:5173 to play locally!
# Build for production
npm run build
# Preview production build
npm run previewmemory-game/
โโโ ๐ฌ public/ # Game assets (videos, images, audio)
โ โโโ bgVideo.mp4 # Background video
โ โโโ card.jpg # Card back design
โ โโโ gameOver.jpg # Game over background
โ โโโ gameWon.jpg # Victory background
โโโ โ๏ธ src/
โ โโโ ๐ api/ # API integration
โ โ โโโ rickAndMorty.js # Character data fetching
โ โโโ ๐งฉ components/ # Reusable components
โ โ โโโ FlipCard.jsx # Animated game cards
โ โ โโโ Scorecard.jsx # Score display
โ โ โโโ GameOverScreen.jsx # Game over modal
โ โ โโโ GameWonScreen.jsx # Victory modal
โ โโโ ๐ pages/ # Game difficulty pages
โ โ โโโ GameBoardEasy.jsx
โ โ โโโ GameBoardMed.jsx
โ โ โโโ GameBoardHard.jsx
โ โโโ App.jsx # Main app component
โ โโโ main.jsx # App entry point
โโโ โ๏ธ Config files # Vite, Tailwind, etc.
- 3D flip animations with perspective transforms
- Interactive hover effects with mouse tracking
- Responsive sizing for all screen sizes
- Character image display with smooth transitions
- Real-time score tracking
- Best score persistence
- Responsive typography
- Clean, readable design
- Multiple difficulty levels (Easy/Medium/Hard)
- Smart card management with shuffle logic
- Win/lose condition handling
- Mobile-optimized layouts
- Animated game over screen with themed background
- Victory celebration screen with special effects
- Play again functionality
- Responsive design
- Rick and Morty aesthetic throughout the game
- Sci-fi color palette with neon accents
- Custom fonts: Bangers for titles, Inter for body
- Immersive background video
- Mobile-first approach for optimal mobile experience
- Flexible card grids that adapt to screen size
- Touch-optimized interactions
- Cross-device compatibility
๐ฎ Play Now: memory-game-swart-chi.vercel.app
Try it on your phone, tablet, or desktop - the game adapts perfectly to any screen size!
We love contributions! Here's how you can help:
- ๐ด Fork the repository
- ๐ฟ Create a feature branch (
git checkout -b feature/amazing-feature) - ๐พ Commit your changes (
git commit -m 'Add amazing feature') - ๐ค Push to the branch (
git push origin feature/amazing-feature) - ๐ฏ Open a Pull Request
- ๐ต Additional sound effects
- ๐ High score leaderboard
- ๐จ More character themes
- ๐ฎ Additional game modes
- โก Performance optimizations
This project is licensed under the MIT License - see the LICENSE file for details.
- Rick and Morty API for providing amazing character data
- Adult Swim for creating the incredible Rick and Morty universe
- React Team for the fantastic framework
- Tailwind CSS for making styling a breeze
- Vercel for seamless deployment
๐ Built with โค๏ธ using React + Vite + Tailwind CSS
Don't forget to โญ star this repo if you enjoyed the game!