Skip to content

Aaisha-Nexus/Rock_Paper_Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages