

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: PokeAPI
incomplete
2: Caching
incomplete
3: Explore
incomplete
4: Catch
incomplete
5: Inspect
incomplete
This lesson's interactive features are locked, please to keep using them
Just like in the Pokemon game, our Pokedex will only allow players to see details about a Pokemon if they have seen it before (or in our case, caught it)
Add an inspect command. It takes the name of a Pokemon and prints the name, height, weight, stats and type(s) of the Pokemon. Example usage:
Pokedex > inspect pidgey
you have not caught that pokemon
Pokedex > catch pidgey
Throwing a Pokeball at pidgey...
pidgey was caught!
Pokedex > inspect pidgey
Name: pidgey
Height: 3
Weight: 18
Stats:
-hp: 40
-attack: 45
-defense: 40
-special-attack: 35
-special-defense: 35
-speed: 56
Types:
- normal
- flying
You should not need to make an API call to get this information, since you should have already stored it when the user caught the Pokemon.
If the user has not caught the Pokemon, just print a message saying so.
Test this one manually! Move on when you're satisfied with your implementation.