Skip to content

binit2-1/memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Rick and Morty Memory Game

Rick and Morty Memory Game React Vite Tailwind CSS

๐ŸŽฎ Play Live Game ๐ŸŽฎ

Test your memory with this epic Rick and Morty themed card game!

๐ŸŽฏ Game Overview

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.

๐ŸŽฎ How to Play

  1. Choose your difficulty: Easy (3 cards), Medium (4 cards), or Hard (5 cards)
  2. Click a card to reveal a Rick and Morty character
  3. Cards shuffle after each click - remember which characters you've seen!
  4. Avoid clicking the same character twice - game over if you do!
  5. Build your score by successfully clicking new characters each round
  6. Aim for 20 points to achieve the ultimate victory!

โœจ Features

๐ŸŽจ Immersive Experience

  • 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

๐ŸŽฎ Game Mechanics

  • 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

๐Ÿ“ฑ Mobile Optimized

  • Touch-friendly interface designed for mobile gameplay
  • Responsive card layouts that adapt to screen size
  • Optimized positioning for comfortable mobile experience

๐Ÿš€ Technical Excellence

  • 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

๐Ÿ› ๏ธ Technologies Used

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

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn

Quick Setup

# 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 dev

Visit http://localhost:5173 to play locally!

Production Build

# Build for production
npm run build

# Preview production build
npm run preview

๐Ÿ“ Project Structure

memory-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.

๐ŸŽฎ Game Components

๐Ÿƒ FlipCard.jsx

  • 3D flip animations with perspective transforms
  • Interactive hover effects with mouse tracking
  • Responsive sizing for all screen sizes
  • Character image display with smooth transitions

๐Ÿ“Š Scorecard.jsx

  • Real-time score tracking
  • Best score persistence
  • Responsive typography
  • Clean, readable design

๐ŸŽฏ Game Boards

  • Multiple difficulty levels (Easy/Medium/Hard)
  • Smart card management with shuffle logic
  • Win/lose condition handling
  • Mobile-optimized layouts

๐ŸŽญ Modal Screens

  • Animated game over screen with themed background
  • Victory celebration screen with special effects
  • Play again functionality
  • Responsive design

๐ŸŽจ Design Features

๐ŸŽช Visual Theme

  • 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

๐Ÿ“ฑ Responsive Design

  • Mobile-first approach for optimal mobile experience
  • Flexible card grids that adapt to screen size
  • Touch-optimized interactions
  • Cross-device compatibility

๐ŸŒŸ Live Demo

๐ŸŽฎ Play Now: memory-game-swart-chi.vercel.app

Try it on your phone, tablet, or desktop - the game adapts perfectly to any screen size!

๐Ÿค Contributing

We love contributions! Here's how you can help:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create a feature branch (git checkout -b feature/amazing-feature)
  3. ๐Ÿ’พ Commit your changes (git commit -m 'Add amazing feature')
  4. ๐Ÿ“ค Push to the branch (git push origin feature/amazing-feature)
  5. ๐ŸŽฏ Open a Pull Request

Ideas for Contributions

  • ๐ŸŽต Additional sound effects
  • ๐Ÿ† High score leaderboard
  • ๐ŸŽจ More character themes
  • ๐ŸŽฎ Additional game modes
  • โšก Performance optimizations

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • 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!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published