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

Method arena

tests/arenas/test_battlecode23.py:240–254  ·  view source on GitHub ↗

Create BattleCode23Arena instance.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

238
239 @pytest.fixture
240 def arena(self, tmp_log_dir, minimal_config):
241 """Create BattleCode23Arena instance."""
242 config = minimal_config.copy()
243 config["game"]["name"] = "BattleCode23"
244 config["game"]["sims_per_round"] = 10
245 config["players"] = [
246 {"name": "p1", "agent": "dummy"},
247 {"name": "p2", "agent": "dummy"},
248 ]
249 arena = BattleCode23Arena.__new__(BattleCode23Arena)
250 arena.submission = "src/mysubmission"
251 arena.log_local = tmp_log_dir
252 arena.config = config
253 arena.logger = MagicMock()
254 return arena
255
256 def _create_round_log_dir(self, tmp_log_dir, round_num):
257 """Helper to create round log directory."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected