Create two teams of Pokémon and play out a match to see who is the world's number one Pokémon master!
To create a random team use PokemonTeam$new(generation = 1L)
.
In the initial version, the CPU will use a random move. AI will improve in future releases.
Methods
Method new()
Commence a Pokémon battle
Usage
PokemonBattle$new(
team_1,
team_2,
player_2_cpu = TRUE,
level = 50L,
generation = 1L,
init_battle = interactive()
)
Arguments
team_1
Player 1's Pokémon team
team_2
Player 2's Pokémon team
player_2_cpu
Logical, is player 2 a CPU? Default set to
TRUE
level
If random teams, the level the Pokémon should be
generation
If teams are random, then the generation the Pokémon will be selected from. Default is Gen 8.
init_battle
Logical, should the battle start on initialisation? Will start if interactive.
Method switch()
Select active Pokémon