This game considers the traditional Pokémon table of advantages/disadvantages.
For instance, Electric attacks causes double damage over Water Pokémons but only half
on a Grass type.
Also, each attack has a probability to fail (miss the target) or cause critical damage (double damage). Basically, this calculation considers attacker's strength, target's defense, a multiplier regarding types and a random value.
Have fun!