hsahovic / poke-env

A python interface for training Reinforcement Learning bots to battle on pokemon showdown
https://poke-env.readthedocs.io/
MIT License
297 stars 103 forks source link

For random battles battle.team gives only revealed pokemon. #499

Closed TNice closed 9 months ago

TNice commented 9 months ago

When getting the team data for a random battle both battle.team and battle.opponent_team return only revealed pokemon from the spectator's point of view. This makes sense for the opponent team however not for the agent's team since it needs to throw all pokemon out to get information on what it's team consists of. Below is an image of what I get from battle.team notice that the length of the dictionary is 1.

image

TNice commented 9 months ago

Update: I think it might just be a server issue if the agent did not disconnect properly and trys to reconnect.