forked from singhmayank980/Hactoberfest2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rock-Paper-Scissor.py
64 lines (30 loc) · 957 Bytes
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import random
player = input().upper()
computer = random.choice(["ROCK","PAPER","SCISSOR"])
print("You Chose:",player,"\n")
print("Computer Chose:",computer)
print("_______________________________")
if (player=="ROCK"):
if (computer=="ROCK"):
print ("It's A Draw!")
elif (computer=="PAPER"):
print ("Oh no! You Lost!")
elif (computer=="SCISSOR"):
print ("You Won! ^^")
elif (player=="PAPER"):
if (computer=="ROCK"):
print ("You Won! ^^")
elif (computer=="PAPER"):
print ("It's A Draw!")
elif (computer=="SCISSOR"):
print ("Oh no! You Lost!")
elif (player=="SCISSOR"):
if (computer=="ROCK"):
print ("Oh no! You Lost!")
elif (computer=="PAPER"):
print ("You Won! ^^")
elif (computer=="SCISSOR"):
print ("It's A Draw!")
else:
print("Invalid Input!\nTry Again! ^^")
print("_______________________________")