A Java-based card game that demonstrates core object-oriented programming principles including classes, encapsulation, inheritance, and game logic.
Built as part of the SYST 17796 course at Sheridan College.
- Object-oriented design with dedicated classes for cards, deck, and players
- Encapsulated game state and logic
- Turn-based gameplay with win/loss conditions
- Clean separation of concerns across classes
Prerequisites: Java 11+ and a terminal or IDE (IntelliJ IDEA, Eclipse, VS Code with Java extension)
Compile and run from the terminal:
# Clone the repository
git clone https://github.com/giri-bikash/card-game-java.git
cd card-game-java
# Compile
javac -d out src/**/*.java
# Run
java -cp out MainOr open in IntelliJ IDEA / Eclipse and run the Main class directly.
card-game-java/
├── src/
│ ├── Main.java # Entry point
│ ├── Card.java # Card model
│ ├── Deck.java # Deck management
│ └── Player.java # Player logic
└── README.md
Sheridan College — Computer Systems Technology