Skip to content

The Memory Game – Flipping Tiles is a Java-based game that challenges players to remember and match pairs of tiles. It utilizes Swing for the graphical interface and array-based logic for shuffling, flipping, and comparing tiles, helping to sharpen one's short-term memory.

Notifications You must be signed in to change notification settings

codingwithnsh/MemoryGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Memory Game – Flipping Tiles

A straightforward Memory Game where you flip tiles to find matching pairs.

Abstract

• Java-based mind game implemented with Swing.
• An even number of tiles is laid out in a grid. Each color/number/label appears on two tiles.
• Flip two tiles at a time. If they match, they stay revealed; if not, they reset.
• This game is designed to exercise and improve memory.

Technologies Required

• Java 8 or higher
• Java Swing: for GUI components
• Java OOP concepts
• ArrayList: to store tile values and shuffle them for random placement

Instructions

  1. Compile and run the code:
    javac com/example/memorygame/MemoryGame.java
    java com.example.memorygame.MemoryGame
  2. A 4×4 grid with 16 tiles appears. Click on two tiles to flip them:
    • If they match, they remain turned over.
    • If not, they flip back after a short delay.
  3. Keep matching until all tiles are revealed.

Enjoy testing your memory!

About

The Memory Game – Flipping Tiles is a Java-based game that challenges players to remember and match pairs of tiles. It utilizes Swing for the graphical interface and array-based logic for shuffling, flipping, and comparing tiles, helping to sharpen one's short-term memory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy