/python_games

Players vs Computer

Primary LanguagePython

Rock Paper Scissors Game

Rules

Rock wins against scissors.

Paper wins against rock.

Scissors win against paper.

Instructions

The game starts by asking the player: "What do you choose? Type 0 for Rock, 1 for Paper or 2 for Scissors."

  • The user's input is stored in a variable and the random generated computer choice is store in a different variable.
  • Then the user's input is compared to the computer's choice to determine the winner and display the result to the player.

more information about the game can be found at: The World Rock Paper Scissors Association website.

Credit

ASCII art -- https://ascii.co.uk/art

Author

Lydie Cherilus June 5, 2022

Click here to play