-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDia_14.py
More file actions
39 lines (36 loc) · 1.05 KB
/
Dia_14.py
File metadata and controls
39 lines (36 loc) · 1.05 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
from getpass import getpass as input
print ("Pedra, 🪨 Papel 📄 e Tesoura ✂️ ")
print ()
print ("Escolha o seu movimento (Pedra, Papel ou Tesoura)")
print ()
play1Move = input("Player 1: ")
print ()
play2Move = input("Player 2: ")
print ()
if player1move == "pedra":
if player2move == "pedra":
print ("Vocês escolheram pedra, empate!")
elif player2move == "papel":
print ("Player 2 ganhou!")
elif player2move == "tesoura":
print ("Player 1 ganhou!")
else:
print ("Jogada inválida!")
elif player1move == "papel":
if player2move == "pedra":
print ("Player 1 ganhou!")
elif player2move == "papel":
print ("Vocês escolheram papel, empate!")
elif player2move == "tesoura":
print ("Player 2 ganhou!")
else:
print ("Jogada inválida!")
elif player1move == "tesoura":
if player2move == "pedra":
print ("Player 2 ganhou!")
elif player2move == "papel":
print ("Player 1 ganhou!")
elif player2move == "tesoura":
print ("Vocês escolheram tesoura, empate!")
else:
print ("Jogada inválida!")