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

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.

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! 🎮