-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.py
More file actions
71 lines (56 loc) · 1.61 KB
/
Copy pathmenu.py
File metadata and controls
71 lines (56 loc) · 1.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import random
import battle
import pokemon
import pandas
from configparser import ConfigParser
def loadSettings():
print('Loading...')
global pokemonData
pokemonData = pandas.read_csv("Pokemon.csv")
def getPokemonInfo(name):
pokeInfo = pokemonData.loc[pokemonData['Name'] == name].iloc[0]
return pokeInfo
def createPokemon(name):
pokeInfo = getPokemonInfo(name)
newPokemon = pokemon.Pokemon(pokeInfo)
return newPokemon
def randomBattleInit():
print('Sorry, random battles are not yet implemented!')
def teamBattleInit():
#Import teams from Smogon
print('Sorry, team battles are not yet implemented!')
def debugBattleInit():
Team1 = []
Team2 = []
Team1.append(createPokemon('Magnezone'))
Team1[0].addMove("Thunderbolt")
print(Team1[0].moves)
#Team1.append(pokemon.Pokemon('Latias'))
Team2.append(createPokemon('Tatsugiri'))
Team2[0].addMove("Dragon Pulse")
Team2[0].addMove("Hydro Pump")
#Team2.append(pokemon.Pokemon('Chandelure'))
battle.battleInit(Team1, Team2)
def settingsMenu():
print('Settings:')
def startMenu():
print('Welcome to Pokemon Python!')
print('What would you like to do?')
print('1. Random Battle!')
print('2. Team-built Battle!')
print('3. Debug Battle!')
print('4. Settings')
userInput = input()
match userInput:
case '1':
randomBattleInit()
case '2':
teamBattleInit()
case '3':
debugBattleInit()
case '4':
settingsMenu()
case _:
print('Invalid input!')
loadSettings()
startMenu()