The game is producing a random state in 3 possibilities then shows result which player wins
When you enter the code in your IDE, then run, the program will need to get your input to choose how many round do you want to play. After you enter your response, the game produce all the round result for each player, and the end of the output you are going to see the final score.
I entered the 3, then the output looks like that.
This is a simple Rock-Paper-Scissors game implemented in Python.
- Open the Command Prompt.
- Navigate to the directory containing your rps.py script using the cd (change directory) command.
- Run the rps.py script with the desired name parameter. For example:
- Follow the on-screen instructions to play the game. You'll be prompted to enter: 1 for Rock 2 for Paper 3 for Scissors Here is a brief description of how the game proceeds:
- Enter your choice (1, 2, or 3).
- The script will display both your choice and the computer's choice, then determine the winner.
- After each round, you can choose to play again by entering Y for Yes or quit by entering Q for Quit.