Program to create Rock, Paper, Scissors! game in PYTHON

 Program to create Rock, Paper, Scissors! game in   PYTHON:-


What is Rock, Paper, Scissors?

Rock, Paper and Scissor is a variation of the children's game "snake-water-gun" where players use hand gestures to represent a snake, water, or a gun. 

If you’re unfamiliar, rock paper scissors is a hand game for two or more players. Participants say “rock, paper, scissors” and then simultaneously form their hands into the shape of a rock (a fist), a piece of paper (palm facing downward), or a pair of scissors (two fingers extended). The rules are straightforward:

  • Rock smashes scissors.
  • Paper covers rock.
  • Scissors cut paper.

Now that you have the rules down, you can start thinking about how they might translate to Python code.

Flow chart:

Here’s a flowchart that describes a single game of rock paper scissors:

                                                                 

  Python Code:

 

OUTPUT:
















1 Comments