MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / GameRef

Class GameRef

codeclash/replay/base.py:55–68  ·  view source on GitHub ↗

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``).

Source from the content-addressed store, hash-verified

53
54@dataclass
55class 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

Callers 1

discover_gamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected