Skip to content

Vaishnavi-Patekar/Memory-Game-Flipping-Tiles

Repository files navigation

🧠 Memory Game - Flipping Tiles

A Java Swing-based memory game that challenges your brain by testing your memory and attention skills. Match all the tile pairs in as few moves and time as possible!


🎮 Game Features

  • ✅ Flip tiles to find matching pairs
  • 🔁 Restart game anytime
  • ⏱ Real-time timer to track your performance
  • 🧮 Move counter to count your attempts
  • 🎯 Difficulty selector (Easy, Medium, Hard)
  • 🌙 Dark Mode toggle for a better UI experience
  • 💡 Clean and user-friendly graphical interface (Java Swing)

📸 Screenshot

SC2

SC3

SC4


📂 Folder Structure

📁 MemoryGame/  
├── Main.java         
├── GameBoard.java      
└── Tile.java          

🧑‍💻 Technologies Used

Technology Description
Java Core programming language
Java Swing GUI framework for window-based interface
AWT Layout, Font, Color utilities
ArrayList Data structure for storing tiles
OOP Principles Classes, objects, and encapsulation
javax.swing.Timer Used for both game timer and tile flip animation


🚀 How to Run Locally

✅ Prerequisites

  • Java JDK 8 or higher
  • Any code editor or IDE (VS Code, IntelliJ IDEA, Eclipse, etc.)

📦 Steps to Run via Terminal (Windows CMD):

  1. Navigate to your project folder:
cd %USERPROFILE%\Desktop\MemoryGame
  1. Compile all .java files:
javac *.java
  1. Run the game:
java Main
  1. Choose difficulty level when prompted (Easy / Medium / Hard):
Mode Grid Size Pairs
Easy 3 x 4 6
Medium 4 x 4 8
Hard 6 x 6 18

About

Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages