MCPcopy Index your code
hub / github.com/CodeClash-ai/CodeClash / validate_code

Method validate_code

codeclash/arenas/arena.py:316–326  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers 15

run_roundMethod · 0.95
test_valid_submissionMethod · 0.45
test_valid_submissionMethod · 0.45
test_missing_fileMethod · 0.45
test_valid_agentMethod · 0.45
test_missing_decideMethod · 0.45
test_import_failureMethod · 0.45

Calls

no outgoing calls