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

Method arena

tests/arenas/test_robocode.py:140–150  ·  view source on GitHub ↗

Create RoboCodeArena instance.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

138
139 @pytest.fixture
140 def arena(self, tmp_log_dir, minimal_config):
141 """Create RoboCodeArena instance."""
142 config = minimal_config.copy()
143 config["game"]["name"] = "RoboCode"
144 config["game"]["sims_per_round"] = 20 # 2 * SIMS_PER_RUN
145 arena = RoboCodeArena.__new__(RoboCodeArena)
146 arena.submission = "robots/custom/"
147 arena.log_local = tmp_log_dir
148 arena.config = config
149 arena.logger = type("Logger", (), {"debug": lambda self, msg: None, "info": lambda self, msg: None})()
150 return arena
151
152 def _create_results_file(self, round_dir, idx: int, results: list[tuple[int, str, int]]):
153 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected