

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: State
incomplete
2: PokeAPI
incomplete
3: Cache Add/Get
incomplete
4: Cache Reaping
incomplete
5: Cache Integration
incomplete
6: Explore
incomplete
7: Catch
incomplete
8: Inspect
incomplete
This lesson's interactive features are locked, please to keep using them
After a user uses the map commands to find a location area, we want them to be able to see a list of all the Pokémon located there.
Add an explore command. It takes the name of a location area as an argument.
Run and submit the CLI tests.
Use the same PokeAPI location-area endpoint, but this time you'll need to pass the name of the location area being explored. By adding a name or id, the API will return a lot more information about the location area.
Feel free to use tools like JSON lint and JSON to Go to help you parse the response.
You'll need to alter the function signature of all your commands to allow them to allow parameters. E.g. explore <area_name>
Example usage:
Pokedex > explore pastoria-city-area
Exploring pastoria-city-area...
Found Pokemon:
- tentacool
- tentacruel
- magikarp
- gyarados
- remoraid
- octillery
- wingull
- pelipper
- shellos
- gastrodon
Pokedex >