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

Method run

codeclash/tournaments/single_player.py:85–93  ·  view source on GitHub ↗

Main execution function that runs all rounds.

(self)

Source from the content-addressed store, hash-verified

83 player_config,
84 environment=self.game.get_environment(f"{self.game.game_id}.dummy"),
85 game_context=self.get_game_context(player_config, round=0),
86 )
87
88 def run(self):
89 """Main execution function that runs all rounds."""
90 try:
91 for round_num in range(1, self.rounds + 1):
92 self.run_training_round(round_num)
93 if self.config["tournament"]["evaluate_matrix"]:
94 self.evaluate()
95 finally:
96 self.end()

Callers 2

mainFunction · 0.95
run_main_agentMethod · 0.45

Calls 3

run_training_roundMethod · 0.95
evaluateMethod · 0.95
endMethod · 0.95

Tested by

no test coverage detected