-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbattle_screens.py
More file actions
46 lines (38 loc) · 1.33 KB
/
battle_screens.py
File metadata and controls
46 lines (38 loc) · 1.33 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
def mostrarVidaAtual( PokemonEscolhido, inimigoEscolhido):
print(f' {PokemonEscolhido["nome"]}')
if PokemonEscolhido["vida"] <= 0:
PokemonEscolhido["vida"] = 0
print(f'❤️ {PokemonEscolhido["vida"]} de vida')
print('-' * 15)
if inimigoEscolhido["vida"] <= 0:
inimigoEscolhido["vida"] = 0
print(f' {inimigoEscolhido["nome"]}')
print(f'❤️ {inimigoEscolhido["vida"]} de vida')
def telaVitoria():
print("\n" + "="*40)
print("🏆 PARABÉNS, TREINADOR!")
print("Você venceu a batalha!")
print("="*40)
while True:
escolha = input("\nDeseja jogar novamente? (s/n): ").lower()
if escolha == "s":
return True
elif escolha == "n":
print("\nObrigado por jogar PokéPython! 👋")
return False
else:
print("Digite apenas 's' ou 'n'.")
def telaDerrota():
print("\n" + "="*40)
print("💀 SEU POKÉPYTHON FOI DERROTADO!")
print("Você perdeu a batalha...")
print("="*40)
while True:
escolha = input("\nDeseja tentar novamente? (s/n): ").lower()
if escolha == "s":
return True
elif escolha == "n":
print("\nTreinador recuou... Até a próxima! 👋")
return False
else:
print("Digite apenas 's' ou 'n'.")