-
Notifications
You must be signed in to change notification settings - Fork 0
/
desafio32.py
15 lines (12 loc) · 1001 Bytes
/
desafio32.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#Desafio 38
#Débora Janini
num_jogos = int(input()) #quantidade de jogos
for i in range(num_jogos):
sheldon, raj = input().split()
if sheldon == raj:
print(f"Caso #{i+1}: De novo!")
else: #primeiro sheldon ganhaa e depois raj
if ((sheldon =="pedra" and (raj =="lagarto" or raj=="tesoura")) or (sheldon =="papel" and (raj =="pedra" or raj=="Spock")) or (sheldon =="tesoura" and (raj =="papel" or raj=="lagarto")) or (sheldon =="lagarto" and (raj =="Spock" or raj=="papel")) or (sheldon =="Spock" and (raj =="tesoura" or raj=="pedra"))):
print(f"Caso #{i+1}: Bazinga!")
elif ((raj =="pedra" and (sheldon =="lagarto" or sheldon=="tesoura")) or (raj =="papel" and (sheldon =="pedra" or sheldon=="Spock")) or (raj =="tesoura" and (sheldon =="papel" or sheldon=="lagarto")) or (raj =="lagarto" and (sheldon =="Spock" or sheldon=="papel")) or (raj =="Spock" and (sheldon =="tesoura" or sheldon=="pedra"))):
print(f"Caso #{i+1}: Raj trapaceou!")