A simple, command-line based Rock, Paper, Scissors game written in Python. This project allows a user to play the classic game against a computer opponent, which makes a random choice.
This is a straightforward implementation of the Rock, Paper, Scissors game. The user plays against the computer through the terminal. The game keeps track of the scores for the user and the computer, and displays a final summary when the user decides to quit.
- Interactive Gameplay: Play directly from your terminal.
- Random Opponent: The computer's choice is randomized in every round, making it unpredictable.
- Score Tracking: The game keeps a running score for both the user and the computer.
- Unlimited Rounds: Play as many rounds as you like in one session.
- Final Score Summary: When you quit, the game displays the total wins for each player and the number of draws.
- You need to have Python 3 installed on your system.
- Save the Python code in a file named
game.py(or any other.pyfile). - Open your terminal or command prompt.
- Navigate to the directory where you saved the file.
- Run the script using the following command:
python game.py
- You will be prompted to enter
Startto begin the game.
- After starting the game, the rules will be displayed.
- In each round, you will be prompted to enter your choice.
- Use the following keys to make your move:
rfor Rock ๐ชจpfor Paper ๐sfor Scissors โ๏ธ
- The computer will make its choice, and the result of the round (win, lose, or draw) will be shown.
- To quit the game at any point, simply type
stopwhen prompted for a choice. - Upon quitting, the final scores will be displayed.
The winning rules are as follows:
- Rock crushes Scissors.
- Scissors cuts Paper.
- Paper covers Rock.
- If both players choose the same, it's a Draw.