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

Method payload

codeclash/replay/base.py:46–48  ·  view source on GitHub ↗

The ``G`` object handed to the JS player.

(self)

Source from the content-addressed store, hash-verified

44
45 @property
46 def payload(self) -> dict:
47 """The ``G`` object handed to the JS player."""
48 return {"w": self.w, "h": self.h, "frames": self.frames, "winner": self.winner, "draw": self.draw, **self.extra}
49
50 def __bool__(self) -> bool: # truthy iff it actually has frames to play
51 return bool(self.frames)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected