Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 979 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 979 Bytes

Basic Rock Paper Scissors Game in Java

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:

How to Play

  1. 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
  2. Computer Choice: The computer randomly generates a choice of "rock," "paper," or "scissors".

  3. 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
  4. Display Results: The result of each round is displayed to the player, indicating whether they won, lost, or if it was a tie.

Note

The code is structured to be easy to understand, making it a great project for beginners learning Java.