CS5500-F-2023 / bot-falcon

bot-falcon created by GitHub Classroom
Apache License 2.0
0 stars 0 forks source link

Impl: evolution when a pokemon is leveled up #92

Closed cptbtptp01 closed 9 months ago

cptbtptp01 commented 9 months ago

Proposed Changes:

Note: the evolution mechanism should follow the rules defined battle up/feed, e.g. use the same threshold numbers. Refer to:

cptbtptp01 commented 9 months ago

Current csv file got from pokemon db: image

Output file will be, i will not keep the level info, and just use our 5 increments

[
  {"Evolving From": "Bulbasaur", "Evolving To": "Ivysaur"},
  {"Evolving From": "Ivysaur", "Evolving To": "Venusaur"},
  {"Evolving From": "Charmander", "Evolving To": "Charmeleon"},
  {"Evolving From": "Charmeleon", "Evolving To": "Charizard"},
  {"Evolving From": "Squirtle", "Evolving To": "Wartortle"},
  {"Evolving From": "Wartortle", "Evolving To": "Blastoise"}
]

Ideally was thinking to use pokedex to inquire, but name should also work. unless the json file we are using has typo, maybe will add a try-catch block