Load a replay, pretty much any replay:
>>> from pyreplib import replay, actions
>>> rep = replay.Replay('LastReplay.rep')
Use list comprehensions to filter only the Build actions and return the
building type:
>>> [a.get_building_type() for a in rep.players[0].actions if
isinstance(a, actions.Build)]
Notice how none of the data makes sense.
Original issue reported on code.google.com by vfo...@gmail.com on 12 Jul 2008 at 4:05
Original issue reported on code.google.com by
vfo...@gmail.com
on 12 Jul 2008 at 4:05