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.
- Language: Python 3.x
-
Clone the Repo
- Clone with Git:
git clone https://github.com/your-username/rock-paper-scissors.git
- Clone with Git:
-
Navigate to the Project Directory
cd rock-paper-scissors -
Ensure the Data Directory Exists
- The leaderboard is stored in
data/leaderboard.json. If thedatadirectory or the file doesn’t exist, the game will create it on the first run.
- The leaderboard is stored in
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.
Enjoy playing Rock-Paper-Scissors! If you have any questions or suggestions, feel free to open an issue or submit a pull request.