-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecissorcipher.py
More file actions
62 lines (55 loc) · 1.01 KB
/
secissorcipher.py
File metadata and controls
62 lines (55 loc) · 1.01 KB
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
import random
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''
p = int(input("what do you want to choose 0.rock 1.paper 2.scissors!"))
print("you choose")
if p == 0:
print(rock)
if p == 1:
print(paper)
if p == 2:
print(scissors)
print("computer choose")
r = random.randint(0, 2)
if r == 0:
print(rock)
if r == 1:
print(paper)
if r == 2:
print(scissors)
if p == 0 and r == 2:
print("you win!!!!")
elif r == 0 and p == 2:
print("you loss")
if p == 1 and r == 0:
print("you win!!!!")
elif p == 0 and r == 1:
print("you loss")
if p == 2 and r == 1:
print("you win!!!!!")
elif p == 1 and r == 2:
print("you loss")
if r == p:
print("oops Its draw")