Skip to content

pradigwe/rock_paper_scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors

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.


Features

  • 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

Built With

  • Java (terminal version)
  • Java Swing (GUI version)

Getting Started

# 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

About

A Java-based Rock, Paper, Scissors game featuring both a terminal and GUI version, showcasing core game logic, input handling, and user interface design.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages