An open API service indexing awesome lists of open source software.

https://github.com/aaisha-nexus/rock_paper_scissors

Basic Rock, Paper, Scissors Code In Java
https://github.com/aaisha-nexus/rock_paper_scissors

codingame game intellij java rock-paper-scissors

Last synced: 4 months ago
JSON representation

Basic Rock, Paper, Scissors Code In Java

Awesome Lists containing this project

README

          

# 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.