1.1-Introductie-Programmeren

Fighting Pokemon

Difficulty: Filled Filled Outlined

Create a program that reads in data from the Pokemon data-set (pokemon.csv), then selects two Pokemon at random and have them battle it out.

The battle itself can be as simple as possible: we’ll only look at the attack power and hit-points. We’ll also fight in “rounds”. Each round, both Pokemon get to launch an attack. This attack will always hit and causes a certain amount of damage. The damage is calculated (per round) to be somewhere between attackpower / 2 and the actual attack-power of the Pokemon. So if the Pokemon has attack power of 60, it will do a random amount of damage between 30 and 60.

The battle continues until one of the Pokemon passes out.

Example

Example

During fights..

Example

And at the end..

Example