-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
46 lines (25 loc) · 889 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
from seed.pokemon import seed as SeedPokemon, pokemon_string
import os
from os import system, name
from time import sleep
def clear():
if name == 'nt':
_ = system('cls')
else:
_ = system('clear')
def definindo_pokemon():
resposta = 0
while(resposta != 1):
print("\n" * 100)
print("Escolha seu pokemon")
escolha = (int(input(pokemon_string)) - 1)
if escolha > len(pokemon_string):
print("Digite um valor válido!")
else:
print("\n" * 100)
pokemon_selecionado = SeedPokemon[escolha]
print("Voce selecionou {}, level {}\nHabilidades\n{}".format(pokemon_selecionado.name, pokemon_selecionado.level, pokemon_selecionado.habilidades))
print("Confirmar escolha?")
resposta = int(input("(1) Sim (2) Não"))
definindo_pokemon()
print('fim')