A single playable game located within a tournament folder. Either it lives inside a per-round tar archive (``archive`` + ``member``) or it is a loose file on disk (``path``).
| 53 | |
| 54 | @dataclass |
| 55 | class GameRef: |
| 56 | """A single playable game located within a tournament folder. |
| 57 | |
| 58 | Either it lives inside a per-round tar archive (``archive`` + ``member``) or it is a |
| 59 | loose file on disk (``path``). |
| 60 | """ |
| 61 | |
| 62 | round: int |
| 63 | sim: int |
| 64 | archive: Path | None = None |
| 65 | member: str | None = None |
| 66 | path: Path | None = None |
| 67 | group: str = "" # matchup label, e.g. for a ladder made of many PvP sub-tournaments |
| 68 | winner: str | None = None # this game's round winner (from its tournament's metadata) |
| 69 | sim_winner: str | None = None # this individual sim's winner (None if unknown/not computed) |
| 70 | sim_draw: bool = False # whether this individual sim was a draw |
| 71 |