Based on poke-env Inpired by Rempton Games
Thanks Bulbagarden's list of type combinations and pokemondb's type chart
battle.team
print(battle.active_pokemon.base_stats)
# atk, def, hp, spa, spd, spe
print(battle.active_pokemon.base_stats["spe"])
print(battle.opponent_active_pokemon.base_stats["spe"])
print(battle.active_pokemon.current_hp)
print(battle.opponent_active_pokemon.current_hp)
print(battle.active_pokemon.ability)
print(battle.opponent_active_pokemon.ability)
return self.create_order(battle.available_switches[0])
switches to first available pokemon
- If I'm hyper weak switch to next available pokemon
- if outpseed and stronger use higest power attack
- bug not switch if no available switch
- bug avoid non damaging moves like roost if you want to attack
- bug avoid imune moves like and eletric move against ground pokemon
You can run it locally with python3:
pip3 install poke-env python-dotenv
python3 ash.py
Or with docker:
docker stop $(docker ps -aq) || true && docker rm $(docker ps -aq) || true && docker rmi $(docker images) || true && docker build . --no-cache -t pokemon-showdown-bot && docker run -d pokemon-showdown-bot
- Decision making based on bulbapedia data or other source
- Refactor Ash
- Train a ML algorithm
- Try without include poke-env lib