The ``G`` object handed to the JS player.
(self)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected