This project provides tools to parse log files from Pokemon Showdown replays for random battles and simulate the battle step by step. It extracts the best effort information on the winner's team and recreates the battle flow.
- Parse Pokemon Showdown replay log files
- Extract winner's team information
- Simulate battle progression turn by turn
- Recreate Pokemon states, moves, and effects throughout the battle
-
Save a Pokemon Showdown replay as a log file (e.g.,
replay.log
). -
Create a BattleSimulator instance:
battleSimulator = BattleSimulator("log_battle_1", "replay.log")
- Simulate the battle:
while battleSimulator.simulate_new_turn():
pass
During the simulation, you can access the current state of the battle and the Pokémon involved at any point.