Skip to content

Chemist26/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game

Overview

This is a simple Java implementation of the classic Rock, Paper, Scissors game. The game is played in a graphical user interface (GUI) created using Java Swing. Players can choose between Rock, Paper, or Scissors, and the computer randomly selects its move. The game tracks the number of games played, computer wins, and user wins. image

Features

  • User-friendly GUI for easy interaction.
  • Randomized computer moves.
  • Keeps track of game statistics, including the number of games played, computer wins, and user wins.

How to Run

  1. Ensure you have Java installed on your machine.
  2. Compile and run the RPS.java file.
javac RPS.java
java RPS

How to Play

  • Click on one of the buttons (Rock, Paper, or Scissors) to make your move.
  • The computer will randomly choose its move.
  • A pop-up message will display the result of the round (Win, Lose, or Tie).
  • Game statistics, including the number of games played, computer wins, and user wins, will be shown on the pop-up message.
  • The game history, displaying the details of each round, will be shown below the gameplay area.

Author

Antoan Stoykov