This is a simple console-based Rock, Paper, Scissors game implemented in Java. The game allows a user to play against the computer, where both the user and the computer make a choice of Rock, Paper, or Scissors. The program determines the winner based on the standard rules of the game.
- Java Development Kit (JDK) 8 or higher
-
Save the Code: Save the Java code in a file named
RockPaperScissors.java
. -
Open Terminal or Command Prompt: Navigate to the directory where
RockPaperScissors.java
is located. -
Compile the Code: Compile the Java code using the following command:
javac RockPaperScissors.java java RockPaperScissors