Commit graph

4 commits

Author SHA1 Message Date
8b03ba7be1
refactor: move command funcs to internal package
Move the command functions to the new internal commands package
2024-09-21 16:53:11 +01:00
80d1b5b6c0
feat: add internal trainer package
Added an internal package for the Pokemon trainer (the user of the
application). The new Trainer type keeps track of the Pokemon in the
trainer's Pokedex and the location where the trainer is visiting.

Added the visit command to allow the Pokemon trainer to visit and
explore an area within the Pokemon world. The explore command no longer
reads any arguments and uses the trainer's current location to get a
list of Pokemon encounters.

Updated the catch command to ensure that the Pokemon the trainer
attempts to catch is in the same location area that the trainer is
visiting.
2024-09-21 15:19:53 +01:00
53aba1ffe7
refactor(client): remove duplicate code 2024-09-20 12:25:38 +01:00
c35bd1d2d1
feat: explore the map and catch Pokemon
Changes:

- Added in-memory cache.
- Created a new package for defining the types from the pokeapi API.
- Created an internal package for the client.
- Added a command to explore the map.
- Added a command to catch Pokemon.
- Added a command to inspect a Pokemon from the Pokedex.
- Added a command to list all the Pokemon in the Pokedex.
2024-09-20 11:51:35 +01:00