Welcome to the classic Stone, Paper, Scissors game written in Python!
- The player enters their name and chooses how many rounds to play.
- In each round, the player chooses either stone, paper, or scissor.
- The computer randomly selects one of the three options.
- Scores are kept for both the player and the computer.
- At the end, final results are displayed showing who won!
- Python
randommodule- Conditional Statements (if-elif-else)
- Loops
- Make sure Python is installed on your computer.
- Save the game file as
stone_game.py. - Open terminal or command prompt.
- Run the file: python stone_game.py
- Enter your name: Iraj
- Welcome Iraj, to Stone, paper, scissor game
- How many rounds do you want to play: 3
- Enter your choice: paper
- You choose = paper
- Computer choose = stone
- You win
Iraj Tahir