Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WarGame

WarGame is a Java console application that simulates a game of War using a standard deck of cards.

Features

  • Simulates rounds of the card game War between two players.
  • Handles scenarios such as ties (War) and multiple rounds of War.
  • Declares the winner of the game based on the player with all the cards.

Usage

To run the WarGame application:

  1. Ensure you have Java installed on your system.
  2. Compile the WarGame.java file using any Java compiler or IDE.
  3. Run the compiled WarGame class file.

Requirements

  • Java Development Kit (JDK)
  • Any compatible Java IDE or compiler (e.g., Eclipse, IntelliJ IDEA)

How to Run

  1. Clone the repository containing the WarGame.java file.
  2. Open a terminal or command prompt.
  3. Compile the WarGame.java file using the Java compiler:
    javac WarGame.java
    

About

Command Line War game

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages