-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
56 lines (44 loc) · 792 Bytes
/
main.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
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''
import random
RPS_list = [rock, paper, scissors]
computer_do = random.randint(0,2)
print('''input you choice:
1 - rock
2 - paper
3 - scissors
''')
user_do = int(input())
user_do -= 1
print('You choice is:')
print(RPS_list[user_do])
print('Computer choice is:')
print(RPS_list[computer_do])
if (user_do - computer_do) == -2 or (user_do - computer_do) == 1:
print('You win')
elif user_do == computer_do:
print('Nobody win')
else:
print('Computer win')