https://github.com/jefersonfuentes/rock-paper-scissors
A simple Rock-Paper-Scissors game implemented in Java. This console-based game allows the player to compete against the computer with randomized choices. The game supports replay functionality.
https://github.com/jefersonfuentes/rock-paper-scissors
Last synced: about 2 months ago
JSON representation
A simple Rock-Paper-Scissors game implemented in Java. This console-based game allows the player to compete against the computer with randomized choices. The game supports replay functionality.
- Host: GitHub
- URL: https://github.com/jefersonfuentes/rock-paper-scissors
- Owner: strakerbit
- Created: 2025-02-07T07:19:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-07T07:27:37.000Z (4 months ago)
- Last Synced: 2025-02-27T01:50:42.216Z (3 months ago)
- Language: Java
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rock Paper Scissors - Java
A simple console-based Rock-Paper-Scissors game written in Java.
## Features
- Player can choose between **Rock**, **Paper**, or **Scissors**.
- The computer randomly selects one of the three options.
- The game determines the winner based on the standard rules:
- Rock beats Scissors
- Scissors beats Paper
- Paper beats Rock
- Option to replay after each round.## How to Play
1. Run the program.
2. Enter your choice: `rock`, `paper`, or `scissor`.
3. The computer will make a random choice.
4. The result will be displayed.
5. You can choose to play again or exit.## Requirements
- Java 8 or higher## Run the Game
Compile and execute with:
```sh
javac Main.java
java Main
```
Enjoy the game! 🎮