Skip to content

Java Swing implementation of the War card game with GUI, user accounts, and game modes.

License

Notifications You must be signed in to change notification settings

erendemir9/war-card-game-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿƒ War Card Game (Java Swing)

This is a Java Swing GUI implementation of the classic War card game, built with Object-Oriented Programming (OOP) principles.
The project includes a graphical interface, user accounts, saving/loading progress, and different game modes.


๐ŸŽฎ Features

๐Ÿƒ Core Gameplay

  • deck package โ†’ Card creation, catalog, and shuffling logic
  • file package โ†’ Reading and saving users/games
  • game package โ†’ Core game engine, game states, and game list management
  • gui package โ†’ Menus, game screens, sound system
  • player package โ†’ Human, guest, computer players, and user list management
  • main package โ†’ Main entry point for starting the application

๐Ÿ–ฅ๏ธ Graphical User Interface

  • Built with Java Swing
  • Interactive menus, buttons, panels, and labels
  • Custom background images and card visuals

๐Ÿ‘ค User Accounts

  • Create and log in with a username
  • Save game progress in a .txt file
  • Continue playing from where you left off
  • Guest mode available (no account needed)

๐ŸŽฒ Game Modes

  • Single Player โ†’ Play against computer AI
  • Two Players โ†’ Local multiplayer with a friend
  • Guest Mode โ†’ Quick play without account saving

๐Ÿš€ Future Plans

  • Replace .txt file saving with SQL database (MySQL/PostgreSQL)
  • Add online multiplayer functionality
  • Improve card animations and GUI effects

๐Ÿ› ๏ธ Technologies

  • Java (JDK 17+)
  • Java Swing for GUI
  • File I/O for saving accounts and progress
  • Planned: SQL Database integration

๐Ÿ“œ License

This project is licensed under the MIT License.
See the LICENSE file for details.

About

Java Swing implementation of the War card game with GUI, user accounts, and game modes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages