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

Randomly select Pokémon from a specific region #10

Closed
wants to merge 13 commits into from

Conversation

BnMcG
Copy link
Contributor

@BnMcG BnMcG commented Jun 7, 2017

This pull request has modified the code in main.py and database.py to allow the selection of random Pokémon from a specific region. I've also updated the README and usage string to include the new commands.

New commands are in the format:

pokemon random-{REGION}

The function in main.py to select a Pokémon from a random region uses the existing code to get all Pokémon from a given region, and then just generates a random index to return from this list.

@BnMcG
Copy link
Contributor Author

BnMcG commented Jun 7, 2017

Closing pull request and re-opening without extra commits.

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

Successfully merging this pull request may close these issues.

None yet

1 participant