This repository contains a simple console-based Rock Paper Scissors game implemented in Java. The game allows a player to compete against the computer by following these steps:
-
Player Input: The player selects either "rock," "paper," or "scissors" through the console.
- Enter
3
for Rock - Enter
4
for Paper - Enter
5
for Scissors
- Enter
-
Computer Choice: The computer randomly generates a choice of "rock," "paper," or "scissors".
-
Determine Winner: The game compares the player's choice with the computer's choice and determines the winner based on the standard rules:
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
-
Display Results: The result of each round is displayed to the player, indicating whether they won, lost, or if it was a tie.
The code is structured to be easy to understand, making it a great project for beginners learning Java.