Java Rock Paper Scissors Game

The rock paper scissors is a game where through hand formations; the decision of the winner is made. The game works on the following principles:

  1. The rock defeats scissors.
  2. The scissors defeat the paper.
  3. The paper defeats the rocks.
  4. If the formation is same from both the side, it is considered a draw.
  5. whoever wins 5 times is the winner.

This game is made in java which encompasses a competition between the user and his computer system.

Java Rock Paper Scissors Game

Java Rock Paper Scissors Program

Output

Rock, Paper, Scissors!
Please enter a move.
Rock = R, Paper= P, and Scissors = S.

Enter your play: s

Computer’s move is: R
You lose!! Rock breaks scissors.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.