Flip. Match. Win! A classic memory card game with Pokemon energy types, built using Java Swing.
- 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
| All Cards Hidden | Matching in Progress | Errors Counted |
|---|---|---|
![]() |
![]() |
![]() |
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.jpgin theassets/folder.
- Open the project
- Ensure
img/folder is in the project root - Run
App.java
javac -d bin src/*.java
java -cp bin AppKeep
img/in the same directory asbin.
- 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
- Java Swing & AWT (built-in)
- Image files in
img/
No external libraries needed.
- Dynamic card loading with
ImageIcon Timerfor delayed flip-back- Efficient shuffle using
Math.random() - Clean object-oriented design
Your Name
Java Developer | Game Enthusiast
Free for personal and educational use.
Pokemon Memory Match β How fast can you remember?


