Skip to content

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

Notifications You must be signed in to change notification settings

sabvillainy/rock-paper-scissors

Repository files navigation

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

Contributing

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages