Code
Here lie all of the docstrings in the PokemonBattle.jl codebase.
PokemonBattle.bout
— MethodRun a full bout of combat until one combatant is victorious. Return that combatant and the final battle state
PokemonBattle.bout
— MethodRun a full bout with random player move selection
PokemonBattle.domove
— MethodDo the move.
Check if mons need switched after move result. If other (the non-acting) pkmn switched, return true.
PokemonBattle.fightall_summary
— MethodFight all of the trainers and return the total win rate and the number of trainers with > 50% winrate.
PokemonBattle.randommoveselect
— MethodRandomly select a move.
PokemonBattle.turn
— Methodturn(b::Battle, move::Int)::Battle
Do one full turn of battle. Use move
as the selected player move.