Commit graph

9 commits

Author SHA1 Message Date
85d75a3943
feat: add release command
Add the release command to release a Pokemon back into the wild.
2024-09-21 21:58:49 +01:00
37d890c800
chore: add LICENSE 2024-09-21 17:26:02 +01:00
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
171b728686
fix: prevent catching Pokemon more than once
Prevent a trainer from catching a Pokemon more than once.
2024-09-21 16:11:56 +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
4152a9d14f
feat: add initial project code
Add the initial code for the PokeDex project. For now the code can list
the next and previous 20 location areas within the Pokemon world.
2024-09-17 18:43:21 +01:00
Apollo
c29412e612 Initial commit 2024-08-28 12:36:14 +01:00