Skip to content

motizukilucas/pokemon-showdown-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Showdown Bot

Based on poke-env Inpired by Rempton Games

Thanks Bulbagarden's list of type combinations and pokemondb's type chart

Poke-env Attributes

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

TODO

  • 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

Running

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

Future Improvements

  • Decision making based on bulbapedia data or other source
  • Refactor Ash
  • Train a ML algorithm
  • Try without include poke-env lib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published