Verify that the given agent can be run by the game. Args: agent: The agent to verify Returns: Boolean indicating whether the agent passed verification Optional string indicating reason for failure
(self, agent: Player)
| 314 | @abstractmethod |
| 315 | def execute_round(self, agents: list[Player]): |
| 316 | """Subclasses implement their game-specific logic here. |
| 317 | This is the low level implementation, you probably want to use run_round instead, which |
| 318 | includes the pre-round setup, post-round setup, and winner determination. |
| 319 | """ |
| 320 | pass |
| 321 | |
| 322 | @abstractmethod |
| 323 | def validate_code(self, agent: Player) -> tuple[bool, str | None]: |
| 324 | """Verify that the given agent can be run by the game. |
| 325 | |
| 326 | Args: |
| 327 | agent: The agent to verify |
| 328 | |
| 329 | Returns: |
no outgoing calls