Skip to content

This python package communicates with PokeApi endpoints to retrieve pokemon data and to process it so that it takes the most effective move from one pokemon against another. Feel free to use this and the project mentioned in any build you'd like.

Notifications You must be signed in to change notification settings

criiptico/PokeTypeAdvantage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokeTypeAdvantage

This python package communicates with PokeApi endpoints to retrieve pokemon data and to process it so that it takes the most effective move from one pokemon against another. It was developed to be used in this project https://github.com/criiptico/poketype, but feel free to use this and the project mentioned in any build you'd like.

Pokemon Api used:

https://pokeapi.co/

How to use:

Due to issues with the package, include it into your project like this:

import sys
sys.path.append('../../PokeTypeAdvantage/PokeTypeAdvantage')
from PokeTypeAdvantage import eval_pokemon, get_pokemon

Source Code

Most of the source code is located under PokeTypeAdvantage/PokeTypeAdvantage and contains these files:

  • poketypeadvantage.py
    • Contains abstracted functions that the user must use to make requests to the pokemon api.
  • Battle.py
    • A class that evaluates the moves of two pokemon.
  • CustomPokeApiWrapper.py
  • Load_Pokemon_data.py
    • Loads the pokemon data that was requested by the user into a custom data type.
  • Move.py
    • A custom class used as a custom data type.
  • Pokemon.py
    • A custom class used as a custom data type.
  • poketype.py
    • Used to test code.

About

This python package communicates with PokeApi endpoints to retrieve pokemon data and to process it so that it takes the most effective move from one pokemon against another. Feel free to use this and the project mentioned in any build you'd like.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published