An open API service indexing awesome lists of open source software.

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.

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.