Skip to content

Topromm/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

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!

Features

  • 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

Requirements

  • Java Development Kit (JDK) 8 or higher
  • Command line terminal (PowerShell, Command Prompt, or Unix terminal)

How to Play

  1. Compile the game:

    javac RPSGame.java
  2. Run the game:

    java RPSGame
  3. Game Controls:

    • Enter your move using:
      • r or rock for Rock
      • p or paper for Paper
      • s or scissors for Scissors
    • Type q, quit, or exit to end the game

Game Rules

  • Wait, you don't really need these, do you?

Score Tracking

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.

Contributing

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

About

A simple Rock-Paper-Scissors game written in Java, played from your command line terminal!

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages