Kaszanas / Kaszanas/pysc2_evolved

Create a Base ReplayProcessor Class

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The example from: `bin/replay_actions.py` shows a `ReplayProcessor` class that saves the stats from replay observations. This idea is extensible.

For running precise analyses on the in-game observations they may need to be saved into some other data structures (maybe even pushed into a database).

There is a need to create a more generic class to be able to override the `process_replay()` method.
This method steps through the replay and adds some statistics to `self`.

The idea is simple but there is multiprocessing involved and queues. The new approach should retain this functionality but allow for more customizability of the observation processing function.

Contributor guide

Open the contributing guide

Research direction

Start by reading bin/replay_actions.py, especially the ReplayProcessor class and its process_replay() method, then trace how multiprocessing and queues support replay processing. Done means a generic base class preserves that functionality while allowing subclasses to customize observation processing and storage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
game-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.