Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't catch and can't explore #1

Open
SparklinStar opened this issue May 20, 2024 · 1 comment
Open

Can't catch and can't explore #1

SparklinStar opened this issue May 20, 2024 · 1 comment

Comments

@SparklinStar
Copy link
Contributor

On giving the commands catch and explore, the following error happens

panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/shahank42/poketext/internal/repl.Init.func6({0xc00002a110?, 0xc000024a20?, 0xc00000a1f4?})
C:/repos/poketext/internal/repl/repl.go:63 +0x3c
main.main()
C:/repos/poketext/main.go:29 +0x1c2

image

@shahank42
Copy link
Owner

shahank42 commented May 20, 2024

Sorry my bad, I should've been clearer with the instructions.

Here's how you would use the application:

  • map and mapb commands to move through the list of areas (no arguments)
  • explore <area-name> to see the available Pokemon in an area
  • catch <pokemon-name> to catch a particular Pokemon
  • inspect <pokemon-name> to inspect an already caught Pokemon
  • pokedex to view your caught pokemon

It's basically an error handling problem, and I need to add the argument info to the help as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants