A Java-based card game with a graphical user interface. Demonstrates OOP, game logic, and GUI development.
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.
- 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
- Java (OOP, Swing)
- Modular design (multiple classes)
- Java JDK 8 or higher
javac *.javajava GUI- Use the GUI to:
- Start a new game
- Play cards
- Save or load the game
- Follow on-screen instructions for gameplay
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
- Java OOP (classes, encapsulation)
- Game logic and state management
- GUI development (Swing)
- Modular code organization
This project is open source and available under the MIT License.
Author: Azhar Mehmood Language: Java Category: Game Development, GUI, OOP