Skip to content

willisntannpc/py-rps-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rock-paper-scissors(rps) cli game

this is a simple command-line implementation of the classic rps game. You can challenge the computer, track your wins and losses, and have your scores saved in a json-based leaderboard.

Stack

  • Language: Python 3.x

Steps to Setup

  1. Clone the Repo

    • Clone with Git:
      git clone https://github.com/your-username/rock-paper-scissors.git
  2. Navigate to the Project Directory

    cd rock-paper-scissors
  3. Ensure the Data Directory Exists

    • The leaderboard is stored in data/leaderboard.json. If the data directory or the file doesn’t exist, the game will create it on the first run.

How to Run the Game

Launch the game directly from your terminal:

python main.py
  • Gameplay Instructions:
    • Type rock, paper, or scissors to play a round.
    • Type q to quit the game at any time.
    • After each round, the game displays the outcome and updates your scores.

Contributing

Enjoy playing Rock-Paper-Scissors! If you have any questions or suggestions, feel free to open an issue or submit a pull request.

About

read the readme.md file for info

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages