You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have a race because after your changes two places are trying to consume the same player stream at once (the respective RandomPlayerAI and your loop printing the stream). Print from within your player or create a wrapping stream that can tee it, eg.
Describe the bug:
Example in
README
of@pkmn/sim
not working as expected when stringomniscient
is changed fromp1
orp2
for the following:Example:
p1
:p2
:With
p1
it returns nothing, withp2
it returns the battle stream ofp2
, but does not include any|request|
messagesExpected behavior:
Accurate and complete battle stream for both sides with
|request|
messages.Additional context:
Most likely an issue originated from showdown, see smogon/pokemon-showdown#10542
The text was updated successfully, but these errors were encountered: