Skip to content

Interactive card game built in Java with a Swing GUI, featuring game state management, save/load functionality, and modular OOP design. Demonstrates advanced Java, GUI, and game development skills.

Notifications You must be signed in to change notification settings

azhar-fullstack/card-game-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Card Game (Java)

A Java-based card game with a graphical user interface. Demonstrates OOP, game logic, and GUI development.

🃏 Project Overview

This project implements a card game in Java, featuring a GUI for interactive play, game state management, and save/load functionality. The game is designed with modular OOP principles and provides a fun, user-friendly experience.

✨ Features

  • Card Game Logic: Deck, player, and game management
  • Graphical User Interface: Java Swing-based GUI for interactive play
  • Save/Load Game: Persist and restore game state (savegame.dat)
  • OOP Design: Modular code with classes for cards, deck, player, game, and GUI

🛠️ Technologies Used

  • Java (OOP, Swing)
  • Modular design (multiple classes)

🚀 Getting Started

Prerequisites

  • Java JDK 8 or higher

Build Instructions

Compile all Java files:

javac *.java

Run the game:

java GUI

🎮 Controls

  • Use the GUI to:
    • Start a new game
    • Play cards
    • Save or load the game
    • Follow on-screen instructions for gameplay

📁 Project Structure

card-game-java/
├── Card.java/.class      # Card class
├── Deck.java/.class      # Deck management
├── Game.java/.class      # Game logic
├── Player.java/.class    # Player logic
├── GUI.java/.class       # GUI (Swing interface)
├── savegame.dat          # Saved game state (ignore in repo)
└── README.md             # This file

🧑‍💻 Skills Demonstrated

  • Java OOP (classes, encapsulation)
  • Game logic and state management
  • GUI development (Swing)
  • Modular code organization

📄 License

This project is open source and available under the MIT License.


Author: Azhar Mehmood Language: Java Category: Game Development, GUI, OOP

About

Interactive card game built in Java with a Swing GUI, featuring game state management, save/load functionality, and modular OOP design. Demonstrates advanced Java, GUI, and game development skills.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages