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

Method __init__

codeclash/arenas/arena.py:41–47  ·  view source on GitHub ↗
(self, round_num: int, agents: list[Player])

Source from the content-addressed store, hash-verified

39
40
41class RoundStats:
42 def __init__(self, round_num: int, agents: list[Player]):
43 self.winner = None
44 self.round_num = round_num
45 # Map of player to game metric (e.g. # of wins, assets accumulated)
46 self.scores: dict[str, float] = {a.name: 0.0 for a in agents}
47 self.player_stats: dict[str, PlayerStats] = {agent.name: PlayerStats(name=agent.name) for agent in agents}
48 self.details: list[str] = []
49
50 def __str__(self) -> str:

Callers

nothing calls this directly

Calls 1

PlayerStatsClass · 0.85

Tested by

no test coverage detected