This application is for storing and performing various analyses of all Pokémon as of Pokémon Sun and Moon (Generation VII).
- Displays all Pokémon at /pokedex
A page to decide which Pokémon would win in a battle
- Calculations are based on base stats only. Ignores Effort Value (EV) training and Individual Value (IV) stats.
- A ramble: Categorization of Pokémon into competitive tiers, such as how Smogon does it, is far more subjective and complex and changes frequently depending on the current metagame. A more thorough compare page in the future could include basic type comparisons.
- Page will assume that both Pokémon are level 100.
- Every Pokémon has 6 basic stats: Attack, Special Attack, Defense, Special Defense, Speed and HP.
- To determine how a Pokémon compares against others for each stat, there will be a bar, built in d3, marking that Pokémon's base stat against the others. Pokémon will only be compared against others in their own evolutionary tier. So a Bulbasaur will not be stacked against its evolution counterpart, Ivysaur (or Venusaur). The comparison page will still run overall, but it will also be noted that the two Pokémon are in different evolutionary tiers.
- Every stat will have a calculation for upper and lower quartile (note, finish writing this):
sortedVals = sorted(values)
mid = len(sortedVals)/2
if (len(sortedVals) % 2 == 0):
# even
upperQ = median(sortedVals[mid:])
if (len(sortedPoints) % 2 == 0):
- Stats will be laid out and highlighted if in the upper or lower quartile. Weaknesses do not have specific labels, but strengths have labels in the metagame:
- High Attack: Physical Sweeper
- High Special Attack: Special Sweeper
- Both: Mixed Sweeper
- High Defense: Physical Wall
- High Special Defense: Special Wall
- Both: Mixed Wall
- Then the comparison will begin.
- Check the stats_sum of both Pokémon
- If stats_sum differs by 200 or more, then the larger stat wins.
- Message: “{Pokemon A} wins by sheer power. Try comparing two Pokémon with similar stats.”
- Otherwise, check individual stats:
- Physical Attack - > Defense
- Special Attack - > Special Defense
- Speed < - > Speed
- HP < - > HP
- Print where each Pokémon wins each comparison, and by how much.
- Set of models for storing personal Pokémon attributes, including model methods for "evolve", "release", "transfer"
- A section to keep track of obtained mega evolution stones (basically equivalent to owning a -Mega Pokémon)
- Set of models for storing personal Pokémon attributes
- /pokedex filters:
- gif_mode to show all 'mons as cute gifs - show or hide caught 'mons
- PokéAPI: all base models and data are from the PokéAPI repository, without which there would be far less data I would be willing to put into this application myself.
- Bootstrap 4
- Create a virtual environment. (http://docs.python-guide.org/en/latest/dev/virtualenvs/)
virtualenv env
- Install Django. Make sure you have Python 3 by running
python3 --version
pip install Django
- Create project
django-admin startproject pokesite
- Create app
python manage.py startapp pokedex
https://www.twilio.com/blog/2014/11/build-your-own-pokedex-with-django-mms-and-pokeapi.html http://pykemon.readthedocs.io/en/latest/usage.html https://tutorial.djangogirls.org/en/django_start_project/