-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRock_Paper_Scissor.py
44 lines (43 loc) · 1.31 KB
/
Rock_Paper_Scissor.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
43
44
import random
choices = ["ROCK", "PAPER", "SCISSORS"]
while True:
x=input("Rock, Paper, Scissors?").capitalize()
AI = random.choice(choices)
if AI==x:
print("Tie!")
p = input("IF YOU WANT TO PLAY MORE PRESS Y ELSE N?")
if(p=='Y'):
continue
else:
break
elif(AI=="ROCK"):
if(x=="PAPER"):
print("Hurrah! PAPER CAPTURED THE ROCK, YOU WIN")
else:
print("YOU LOSE! ,FEEL SORRY FOR YOU")
p = input("IF YOU WANT TO PLAY MORE PRESS Y ELSE N?")
if(p=='Y'):
continue
else:
break
elif(AI=="PAPER"):
if(x=="SCISSORS"):
print("Hurrah! SCISSORS CUT THE PAPER, YOU WIN")
else:
print("YOU LOSE! ,FEEL SORRY FOR YOU")
p = input("IF YOU WANT TO PLAY MORE PRESS Y ELSE N?")
if(p=='Y'):
continue
else:
break
elif(AI=="SCISSORS"):
if(x=="ROCK"):
print("Hurrah! ROCK SMASHES THE SCISSORS, YOU WIN")
else:
print("YOU LOSE! ,FEEL SORRY FOR YOU")
p = input("IF YOU WANT TO PLAY MORE PRESS Y ELSE N?")
if(p=='Y'):
continue
else:
break
print("NICE TO PLAY WITH YOU,HAVE A GOOD DAY")