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

Parse replay log turn by turn #586

Closed BaiqingL closed 2 months ago

BaiqingL commented 3 months ago

The replay server also can return battle logs if you append an extension to the url. It's in the same format as the messages poke-env parses. I'm wondering if it's possible to get poke-env to parse replays turn by turn?

BaiqingL commented 2 months ago

Pinging @hsahovic, are there any options right now to do this or it's going to be a more manual approach? The idea is I can provide a complete log, and have an almost debugger like style step by step whereas I can call on something like battle.nextTurn() and get the current state of the game at that specific turn.