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

Class PlayerStats

codeclash/arenas/arena.py:24–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22from codeclash.utils.log import get_logger
23
24
25class PlayerStats:
26 def __init__(self, name: str):
27 self.name = name
28 self.invalid_reason: str = ""
29 self.score: float = 0.0
30 self.valid_submit = False
31
32 def to_dict(self) -> dict[str, Any]:
33 return {
34 "name": self.name,
35 "invalid_reason": self.invalid_reason,
36 "score": self.score,
37 "valid_submit": self.valid_submit,
38 }
39
40

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected