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

Class PlayerGameProfile

codeclash/analysis/metrics/win_rate.py:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12@dataclass
13class PlayerGameProfile:
14 player_id: str
15 model_name: str
16 game_id: str
17 wins: int = 0
18 count: int = 0
19
20 @property
21 def win_rate(self) -> float:
22 return self.wins / self.count if self.count > 0 else 0.0
23
24
25def main(log_dir: Path):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected