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_1Player 1's Pokémon team
team_2Player 2's Pokémon team
player_2_cpuLogical, is player 2 a CPU? Default set to
TRUElevelIf random teams, the level the Pokémon should be
generationIf teams are random, then the generation the Pokémon will be selected from. Default is Gen 8.
init_battleLogical, should the battle start on initialisation? Will start if interactive.
Method switch()
Select active Pokémon