2018-05-22

posted May 22, 2018, 5:53 AM by Konstantinovich Samuel   [ updated May 22, 2018, 6:23 AM ]
Lab + Complete as HW Update your pokelab as follows:
1. make the name of your file:
pokedex.py

2. Include 2 columns in your HTML table:
Evolved From, Evolves Into

ID image name height weight Evolves From Evolves To
001 Bulbasaur 7 69 - Venusaur
002 Venusaur 10     130 Bulbasaur Ivysaur
003 Ivysaur 20     1000 Venusaur -
 

3. Add a Stats column where you get 3 values arranged vertically:

Attack: X
Defense: Y
HitPoints: Z

Use stats.csv which is in the format:
id,type_1,type_2,attack,defense,hp,special_attack,special_defense,speed,ability_1,ability_2,ability_hidden
1,grass,poison,49,49,45,65,65,45,overgrow,NA,chlorophyll
2,grass,poison,62,63,60,80,80,60,overgrow,NA,chlorophyll
3,grass,poison,82,83,80,100,100,80,overgrow,NA,chlorophyll


ID image name height weight stats Evolves From Evolves To
001 Bulbasaur 7 69 Attack: 49
Defense: 49
HitPoints: 45
- Venusaur
 
4. Easy optional part that use stats.csv also: 
Add a type column that can display up to 2 different types (grass + poison for example), and color code the types!
Fire = Red
Water = Blue
Poison = purple
Plant = green
etc.

Comments