Skip to content

BaiqingL/poke-env-parse

Repository files navigation

Pokemon Showdown Replay Parser and Battle Simulator

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.

Features

  • 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

Usage

  1. Save a Pokemon Showdown replay as a log file (e.g., replay.log).

  2. Create a BattleSimulator instance:

battleSimulator = BattleSimulator("log_battle_1", "replay.log")
  1. 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.

About

Parse pokemon env turn by turn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages