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.
- Host: GitHub
- URL: https://github.com/sabvillainy/rock-paper-scissors
- Owner: sabvillainy
- Created: 2024-04-15T20:47:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-25T23:25:22.000Z (about 2 years ago)
- Last Synced: 2025-01-24T08:32:04.777Z (over 1 year ago)
- Topics: filesystem, rock-paper-scissors, save, save-files
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

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