2018-05-24

posted May 24, 2018, 6:08 AM by Konstantinovich Samuel   [ updated May 25, 2018, 6:22 AM ]
Now that your table is done you have 1 more required phase:

Every time you load the page, choose 2 different random pokemon ID's.
Display those two pokemon at the top of your table side by side along with their Types + Attack/Def/HP stats compared in the middle.

Note:
a. (The full table of 300 should be below them)
b. (Any reference to a pokemon larger than 300 should be ignored (replace with a '-' )


Bulbasaur vs Ivysaur

Bulbasaur Stats Ivysaur
Attack 49 62
Defense 49 63
Hitpoints 45 60
Types Grass 
Poison
Grass
Poison



CHALLENGE: Here is the type chart for pokemon. Modify their attack stat based on these multipliers. (Two different multipliers stack multiplicatively and the order doesn't matter)
Attacks types are the rows, target types are the columns
A normal type attacking Rock gets a .5 multiplier. 
A normal type attacking Ghost gets a multiplier of 0
A Fire type attacking Fire gets a .5 multiplier. 
A Fire type attacking Grass or Ice gets a multiplier of 2.
A Fire type attacking something that was hypothetically grass AND ice, would have a 4.0 multiplier. (Stacking the multipliers)

Attacking,Normal,Fire,Water,Electric,Grass,Ice,Fighting,Poison,Ground,Flying,Psychic,Bug,Rock,Ghost,Dragon,Dark,Steel,Fairy
Normal,1,1,1,1,1,1,1,1,1,1,1,1,0.5,0,1,1,0.5,1
Fire,1,0.5,0.5,1,2,2,1,1,1,1,1,2,0.5,1,0.5,1,2,1
Water,1,2,0.5,1,0.5,1,1,1,2,1,1,1,2,1,0.5,1,1,1
Electric,1,1,2,0.5,0.5,1,1,1,0,2,1,1,1,1,0.5,1,1,1
Grass,1,0.5,2,1,0.5,1,1,0.5,2,0.5,1,0.5,2,1,0.5,1,0.5,1
Ice,1,0.5,0.5,1,2,0.5,1,1,2,2,1,1,1,1,2,1,0.5,1
Fighting,2,1,1,1,1,2,1,0.5,1,0.5,0.5,0.5,2,0,1,2,2,0.5
Poison,1,1,1,1,2,1,1,0.5,0.5,1,1,1,0.5,0.5,1,1,0,2
Ground,1,2,1,2,0.5,1,1,2,1,0,1,0.5,2,1,1,1,2,1
Flying,1,1,1,0.5,2,1,2,1,1,1,1,2,0.5,1,1,1,0.5,1
Psychic,1,1,1,1,1,1,2,2,1,1,0.5,1,1,1,1,0,0.5,1
Bug,1,0.5,1,1,2,1,0.5,0.5,1,0.5,2,1,1,0.5,1,2,0.5,0.5
Rock,1,2,1,1,1,2,0.5,1,0.5,2,1,2,1,1,1,1,0.5,1
Ghost,0,1,1,1,1,1,1,1,1,1,2,1,1,2,1,0.5,1,1
Dragon,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,0.5,0
Dark,1,1,1,1,1,1,0.5,1,1,1,2,1,1,2,1,0.5,1,0.5
Steel,1,0.5,0.5,0.5,1,2,1,1,1,1,1,1,2,1,1,1,0.5,2
Fairy,1,0.5,1,1,1,1,2,0.5,1,1,1,1,1,1,2,2,0.5,1

Charmander vs Ivysaur

CharmanderStatsIvysaur
Attack5262
Defense4363
Hitpoints3960
TypesFire (2.0)
Grass(0.5)
Poison(1.0)


Fire is 2.0 vs grass, and 1.0 vs poison, so the product is 2.0
Grass is .5 vs Fire
Poison is .5 vs Fire
Comments