A simple, interactive command line implementation of the classic Rock-Paper-Scissors game written in Java. Play against the computer, track your wins/losses/ties, and enjoy the classic hand game right from your terminal!
- Play Rock-Paper-Scissors against a computer opponent
- Track game statistics (wins, losses, ties)
- Simple, intuitive controls
- Score tracking for multiple rounds
- Clean, command line interface
- Java Development Kit (JDK) 8 or higher
- Command line terminal (PowerShell, Command Prompt, or Unix terminal)
-
Compile the game:
javac RPSGame.java
-
Run the game:
java RPSGame
-
Game Controls:
- Enter your move using:
rorrockfor Rockporpaperfor Papersorscissorsfor Scissors
- Type
q,quit, orexitto end the game
- Enter your move using:
- Wait, you don't really need these, do you?
The game keeps track of:
- Total rounds played
- Number of wins
- Number of losses
- Number of ties
Your score is displayed after each round and at the end of the game.
Feel free to fork this repository and make improvements! Some ideas for enhancements:
- Add best-of-N games mode
- Implement high score tracking
- Add ASCII art for moves
- Create a GUI version