Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Let's play ROCK PAPER SCISSORS! ")
- p1score = 0
- p2score = 0
- p1 = input("Player 1 name: ")
- p2 = input("Player 2 name: ")
- counter = 1
- while True:
- r=("R","ROCK", "rock", "Rock", "r")
- s=("S", "s", "Scissor", "scissor", "SCISSOR")
- p=("P", "p", "Paper", "paper", "PAPER")
- print()
- print()
- print ("Select your moves!")
- p1move = input("Player1 move>")
- p2move = input("Player2 move>")
- print("Round...", counter,+1)
- if p1move in r and p2move in r:
- print(p1, p2,"Rocks and Rocks... it's a tie!")
- elif p1move in r and p2move in p:
- print(p2, "Wins by wrapping the rock in the paper!" )
- p2score += 1
- elif p1move in r and p2move in s:
- print(p1,"Wins by breaking the scissors!! 🥳")
- p1score += 1
- elif p1move in p and p2move in r :
- print(p1,"Wins by wrapping Rocks with paper 🥳")
- p1score += 1
- elif p1move in p and p2move in p :
- print("Its a Draw 🥺")
- elif p1move in p and p2move in s :
- print(p2,"Win 🥳")
- p2score += 1
- elif p1move in s and p2move in r :
- print(p2,"Wins 🥳")
- p2score += 1
- elif p1move in s and p2move in p :
- print(p1,"Wins 🥳")
- p1score += 1
- else:
- if p1move in s and p2move in s :
- print("Its a draw again 🥺 ")
- if p1score == 3 or p2score == 3 :
- print (p1,"has",p1score,"and",p2,"has",p2score)
- break
- else:
- continue
Advertisement
Add Comment
Please, Sign In to add comment