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

https://github.com/sabvillainy/rock-paper-scissors

Simple "Rock Paper Scissors" console game with save system.
https://github.com/sabvillainy/rock-paper-scissors

filesystem rock-paper-scissors save save-files

Last synced: over 1 year ago
JSON representation

Simple "Rock Paper Scissors" console game with save system.

Awesome Lists containing this project

README

          

# Rock Paper Scissors Game
Welcome to the Rock Paper Scissors game! This is a simple command-line game where you can play Rock, Paper, Scissors against the computer. The game keeps track of the scores and saves them in a text file.

## Features
- Play Rock, Paper, Scissors against the computer.
- Scores are saved and loaded from a text file.
- View the current scoreboard.
- Quit the game and save your progress.

## Code Overview
### Main.java
This is the main class of the game. It initializes the game, displays the menu, and handles user input.

### SaveSystem.java
This class handles reading from and writing to the save file. It ensures that the scores are saved and loaded correctly.

## Save File
The scores are will be saved in a text file named `save-file.txt`. The file contains the following information:

`You: [userScore]`

`Computer: [computerScore]`

`Draw: [draw]`

## Example Gameplay
![image](https://github.com/sabvillainy/rock-paper-scissors/assets/163596339/1bc410f9-3dc2-47a5-b2e4-f56c28ba4681)

## Contributing
Feel free to fork this repository and submit pull requests. Any improvements or bug fixes are welcome!