The main purpose of a Pokedex is to keep track of all the Pokemon you've caught. Gotta catch 'em all!
Add a pokedex command. It takes no arguments but prints a list of all the names of the Pokemon the user has caught. Example usage:
Pokedex > catch pidgey
Throwing a Pokeball at pidgey...
pidgey was caught!
You may now inspect it with the inspect command.
Pokedex > catch caterpie
Throwing a Pokeball at caterpie...
caterpie was caught!
You may now inspect it with the inspect command.
Pokedex > pokedex
Your Pokedex:
- pidgey
- caterpie
Test your implementation manually! Move on when you're satisfied that it's working.
Login to Complete
Login to view solution