A game where users play Rock-Paper-Scissors against the computer.
Tracks user and computer scores and provides real-time feedback.
Can be played in the terminal or using a Java Swing GUI.
- Play in the terminal or with a Java Swing GUI
- Keeps track of user vs computer score
- Supports quitting the game anytime
- GUI buttons update scores and show results immediately
- Java (terminal version)
- Java Swing (GUI version)
# Clone the repository
git clone https://github.com/pradigwe/rock-paper-scissors.git
cd rock-paper-scissors
# =========================
# Terminal Version
# =========================
# Compile the terminal classes
javac App.java Game.java
# Run the game in your terminal
java App
# Follow the prompts to play. Enter 0 anytime to quit.
# =========================
# GUI Version
# =========================
# Compile the GUI classes
javac GameGui.java Game.java
# Run the GUI
java GameGui
# Click the “Click to Start” button, then use the Rock, Paper, or Scissors buttons to play.
# =========================
# Project Structure
# =========================
rock-paper-scissors/
├── .vscode/
├── bin/ # Compiled .class files
├── src/ # Source .java files
│ ├── App.java # Terminal version main class
│ ├── Game.java # Game logic class
│ ├── GameGui.java # GUI version main class
└── README.md # Project documentation