RPS

Rock Paper Scissor

a simple command-line Rock-Paper-Scissor game without using any external game libraries like PyGame.
In this game, the user gets the first chance to pick the option among Rock, paper and scissors. After that computer select from the remaining two choices(randomly), the winner is decided as per the rules.

Winning Rules as follows :

Rock vs paper-> paper wins
Rock vs scissor-> Rock wins
paper vs scissor-> scissor wins.

Source code of The Program

Sample output

winning Rules of the Rock paper and scissor game as follows:
rock vs paper->paper wins
rock vs scissors->rock wins
paper vs scissors->scissors wins

Enter choice
1. Rock
2. paper
3. scissor
User turn:1
User choice is:Rock
Now its computer turn ……
computer choice is:paper
RockV/spaper
paper wins=>computer wins
do you want to play again?
N

Leave a Comment

Your email address will not be published.