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
- Host: GitHub
- URL: https://github.com/aaisha-nexus/rock_paper_scissors
- Owner: Aaisha-Nexus
- Created: 2024-07-22T11:44:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T12:12:59.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T22:44:56.322Z (about 1 year ago)
- Topics: codingame, game, intellij, java, rock-paper-scissors
- Language: Java
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.