WarGame is a Java console application that simulates a game of War using a standard deck of cards.
- 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.
To run the WarGame application:
- Ensure you have Java installed on your system.
- Compile the
WarGame.javafile using any Java compiler or IDE. - Run the compiled
WarGameclass file.
- Java Development Kit (JDK)
- Any compatible Java IDE or compiler (e.g., Eclipse, IntelliJ IDEA)
- Clone the repository containing the
WarGame.javafile. - Open a terminal or command prompt.
- Compile the
WarGame.javafile using the Java compiler:javac WarGame.java