-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rock-Paper-Scissor.py
67 lines (63 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''
import random
print ("Wlcome to the Rock-Paper-Scissor Python Game !!")
player = int (input ("Make a Choice:- 1.Rock, 2.Paper , 3.Scissor\n"))
computer = random.randint(1,3)
if (player == 1):
print ("Player Chose: Rock"+rock)
if (computer == 1):
print ("Computer Chose: Rock"+rock)
print ("This is a Tie !!")
elif (computer == 2):
print ("Computer Chose: Paper"+paper)
print ("You Lose !!")
else:
print ("Computer Chose: Scissor"+scissors)
print ("You Win !!")
elif (player == 2):
print ("Player Chose: Paper"+paper)
if (computer == 2):
print ("Computer Chose: Paper"+paper)
print ("This is a Tie !!")
elif (computer == 3):
print ("Computer Chose: Scissor"+scissors)
print ("You Lose !!")
else:
print ("Computer Chose: Rock"+rock)
print ("You Win !!")
elif (player == 3):
print ("Player Chose: Scissor"+scissors)
if (computer == 3):
print ("Computer Chose: Scissor"+scissors)
print ("This is a Tie !!")
elif (computer == 1):
print ("Computer Chose: Rock"+rock)
print ("You Lose !!")
else:
print ("Computer Chose: Paper"+paper)
print ("You Win !!")
else:
print ("Invlaid Choice Entered !!")