Trainer class

Implement a trainer class:

  • Attributes: Name with Pokemon list with a primary Pokemon
  • Methods:
    • Change primary Pokemon (and verify that the new primary pokemon is alive)
    • Get primary Pokemon

Example of Main:

player_1 = Trainer(..., [Pokemon1, Pokemon2])
player_2 = Trainer(..., [Pokemon1, Pokemon2, Pokemon3])

player_1.getPrimaryPokemon().attack(capacity, player_2.getPrimaryPokemon())
player_2.getPrimaryPokemon().attack(capacity, player_1.getPrimaryPokemon())
Edited by v-ducros