A python interface for training Reinforcement Learning bots to battle on pokemon showdown
ps_client
submodule???
typesetup.py
to pyproject.toml
(thanks @cameronangliss!)Full Changelog: https://github.com/hsahovic/poke-env/compare/0.7.1...0.7.2
This release adds Gen9EnvPlayer
, as well as a couple of gen 9-related features, bug fixes and misc improvements.
Features:
Gen9EnvPlayer
classupdate_team
method to Player
objectstera
support in the Teambuilder
submodule, in parsing and team generationGenData
objectsOTS
requestsBug fixes & misc:
THERMAL_EXCHANGE
effectSimpleHeuristicPlayer
behave like a random agent in doublesGenData
deepcopy return itself - it's a singleton classThanks to @AoifeHughes and @kodecreer for their contributions!
This release introduces basic gen 9 support. Random battles is the main format that has been tested - things are probably still a bit broken more generally. If you encounter something weird, please open an issue.
Features:
tera
supportBug fixes:
disabled
move error message could freeze a battlerecharge
Move
datapoke_env.utils
are now poke_env.stats
data
submoduleGenData
classThis release is a step towards gen 9 support. Preliminary gen 9 support is available on #351
Thanks to @MatteoH2O1999 and @akashsara for your amazing work :)
Player
objects - use Player(..., save_replays=True)
to try it out!AbstractBattle
abstract_property
valuesBattle.opponent_can_mega_evolve
/ Battle.opponent_can_z_move
propertiesBattle.weather
typingMinor:
EnvPlayer.step
when reset
wasn't called raises an Exception, as per some open ai gym implementationsThis release adds:
-swapsideconditions
messageslog.info
/log
pm messages instead of log.warning
themMoves
initialization - their type is now correctly inferredenv_player.reset
when called before the current battle is finishedenv_player.complete_current_battle
now forfeits instead of performing random moves until the battle finishesenv_player.step(-1)
forfeits the battlePlayerNetworkInterface
- this should eliminate a bug where keeping Player
objects around for a great number of battles lead to a monotonic increase in RAM usagePokemon
object ability property when there's only one possibility