Pokémon Pro Log

From UBC Wiki


Yi Yang, Carol Leung, Hunter Wang

What is the problem?

We will generate the best team in Pokémon to battle a rival team. Each team consists of 3 or 6 Pokémon. Each Pokémon has 1 or 2 types with different weaknesses for each type. See https://pokemondb.net/type for type weaknesses and strengths.

What is the something extra?

We have 2 mode of team generation: Random: You are given 6 random pokemon as team. Strategy: You team of pokemon is based of your strategy.

You can have your team auto battle the enemy team until one team's pokemon has all fainted. The games display what happens in battle as pokemon uses move and deal damage.

we have implemented the following options:

- choosing pokemon of one or any type

- choosing legendary or not

- choosing any generation

What did we learn from doing this?

Loading the database with information from KBs. How to change value in existing KBs. Dynamically add csv data to a KB. More complex control flows. Don't load the KB too many times or your functions will never return. Pokemon is complicated. So much data are available for pokemon online.

Link to code