-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex.045.py
45 lines (42 loc) · 890 Bytes
/
ex.045.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
from random import randint
from time import sleep
itens = ('pedra', 'tesoura', 'papel')
pc = randint(0,2)
print('=' * 30)
print('escolha uma das opeções')
print('''[ 0 ] Pedra
[ 1 ] tesoura
[ 2 ] papel''')
print('=' * 30)
player = int(input('qual é sua escolha? '))
print('=' * 30)
print('jo')
sleep(0.5)
print('ken')
sleep(0.5)
print('po')
sleep(0.5)
print('=' * 30)
print('vc jogou {} e eu jogeui {}'.format(itens[player],itens[pc]))
print('=' * 30)
if pc == 0:
if player == 0:
print('EMPATE')
if player == 1:
print('PERDEU')
if player == 2:
print('VENCEU')
if pc == 1:
if player == 0:
print('VENCEU')
if player == 1:
print('EMPATE')
if player == 2:
print('PERDEU')
if pc == 2:
if player == 0:
print('PERDEU')
if player == 1:
print('VENCEU')
if player == 2:
print('EMPATE')