-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPS.py
42 lines (30 loc) · 1.23 KB
/
RPS.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import random
def rps():
turns = ["Rock","Paper","Scissors"]
player1 = random.choice(turns)
player2 = False
while player2 == False:
player2 = input("What is your choice Rock,Paper,Scissors ?")
if player2 == player1:
print("Wooo...It's a TIE!!!🤝")
elif player2 == "Rock" :
if player1 =="Scissors":
print("You won 🥳 !!!", player2 ,"smashes",player1)
else:
print("OOPS you lost 🥲 !!", player1,"covers",player2)
elif player2 == "Paper":
if player1 == "Rock":
print("You won 🥳 !!!", player2 ,"covers",player1)
else:
print("OOPS...you lost 🥲 !!", player1,"cuts",player2)
elif player2 == "Scissors":
if player1 == "Paper":
print("You won 🥳 !!!", player2 ,"cuts",player1)
else:
print("OOPS...you lost 🥲 !!", player1,"smashes",player2)
else :
print("😤 😤 😤 Check your spelling you moron.... 😒 🤬 😒!!!!!")
player2 = False
player1 = random.choice(turns)
if __name__ == "__main__":
rps()