We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Pokedex

The main purpose of a Pokedex is to keep track of all the Pokemon you've caught. Gotta catch 'em all!

Assignment

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.