https://github.com/sameerqureshii/rock-paper-scissor
This is a simple Rock-Paper-Scissors game implemented in Python. The game allows a player to compete against the computer in a total of five rounds, with the final winner determined based on the number of wins.
https://github.com/sameerqureshii/rock-paper-scissor
Last synced: 12 months ago
JSON representation
This is a simple Rock-Paper-Scissors game implemented in Python. The game allows a player to compete against the computer in a total of five rounds, with the final winner determined based on the number of wins.
- Host: GitHub
- URL: https://github.com/sameerqureshii/rock-paper-scissor
- Owner: sameerqureshii
- Created: 2025-02-16T18:12:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-16T18:33:34.000Z (over 1 year ago)
- Last Synced: 2025-06-03T16:20:00.474Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
Rock-Paper-Scissor Game
This is a simple Rock-Paper-Scissors game implemented in Python. The game allows a player to compete against the computer in a total of five rounds, with the final winner determined based on the number of wins.
# How to Play
1. Run the Python script.
2. Enter your choice: `rock`, `paper`, or `scissor` when prompted.
3. The computer will randomly select its choice.
4. The winner of the round is determined based on the standard rules:
• Rock beats Scissors
• Scissors beats Paper
• Paper beats Rock
• If both choose the same, it's a draw.
5. The game continues for 5 rounds.
6. After 5 rounds, the final score is displayed, and the overall winner is determined.
# Requirements
• Python 3.x
# Running the Game
1. Ensure Python is installed on your system.
2. Save the script as `rock_paper_scissors.py`.
3. Open a terminal or command prompt and navigate to the script location.
4. Run the script using:
```python
python rock_paper_scissors.py
```
# Example Gameplay
```python
Choose rock, paper or scissor: rock
You win! You chose rock and the computer chose scissor.
4 rounds remaining.
...
Final Score:
Me: 3
Computer: 1
Draws: 1
You won the game!
```
# License
This project is free to use and modify.