Skip to content

🐾 Pokemon Memory Match – Flip cards, match energy types, track errors! 4Γ—5 grid, smooth flips, restart anytime. Pure Java Swing.

License

Notifications You must be signed in to change notification settings

abhishekprajapatt/Pokemon-Memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Pokemon Memory Match

Flip. Match. Win! A classic memory card game with Pokemon energy types, built using Java Swing.


Features

  • 4Γ—5 grid (20 cards, 10 unique types)
  • Error counter – counts failed matches
  • Restart Game button
  • Cards flip back after 1.5 seconds if not matched
  • Smooth image scaling and clean UI
  • Fully playable with mouse

Screenshots

All Cards Hidden Matching in Progress Errors Counted
Hidden Progress Errors

Project Structure

MemoryCards/
β”‚
│── MemoryCards.java     # Game logic + GUI
│── App.java             # Main entry point
β”‚
β”œβ”€β”€ assets/                     # Required images
β”‚   β”œβ”€β”€ back.jpg             # Card back
β”‚   β”œβ”€β”€ darkness.jpg
β”‚   β”œβ”€β”€ fire.jpg
β”‚   └── ... (10 total)
β”‚
└── README.md

Important: Place all 10 energy images + back.jpg in the assets/ folder.


How to Run

Using IDE (IntelliJ, Eclipse, VS Code)

  1. Open the project
  2. Ensure img/ folder is in the project root
  3. Run App.java

Terminal

javac -d bin src/*.java
java -cp bin App

Keep img/ in the same directory as bin.


Game Rules

  • Click a card to flip it
  • Find two matching cards to keep them revealed
  • Mismatched cards flip back after 1.5 seconds
  • Errors increase on each failed match
  • Click "Restart Game" to shuffle and play again

Dependencies

  • Java Swing & AWT (built-in)
  • Image files in img/

No external libraries needed.


Code Highlights

  • Dynamic card loading with ImageIcon
  • Timer for delayed flip-back
  • Efficient shuffle using Math.random()
  • Clean object-oriented design

Author

Your Name
Java Developer | Game Enthusiast


License

Free for personal and educational use.


Pokemon Memory Match – How fast can you remember?

About

🐾 Pokemon Memory Match – Flip cards, match energy types, track errors! 4Γ—5 grid, smooth flips, restart anytime. Pure Java Swing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages