← Back to context

Comment by stackghost

13 hours ago

I wonder if there is a library to decipher brood war replay files. Perhaps an agent could learn by watching.

Yes, e.g. https://github.com/gulshngill/bwrepanalysis. But I doubt an agent would learn much from them without a lot of additional processing - the replay files are little more than a stream of the orders given during the match (e.g. "at tick 17, player 1 ordered unit 234 to attack-move to 56,78"). They're difficult to make sense of without a lot of additional context, like the map layout, the location and status of other units, what parts of all that are actually visible to each player, etc.

I haven’t checked for SC:BW but Blizzard has official parsers/replayers for SC2 on GitHub.