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

Method arena

tests/arenas/test_battlecode24.py:253–267  ·  view source on GitHub ↗

Create BattleCode24Arena instance.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

251
252 @pytest.fixture
253 def arena(self, tmp_log_dir, minimal_config):
254 """Create BattleCode24Arena instance."""
255 config = minimal_config.copy()
256 config["game"]["name"] = "BattleCode24"
257 config["game"]["sims_per_round"] = 10
258 config["players"] = [
259 {"name": "p1", "agent": "dummy"},
260 {"name": "p2", "agent": "dummy"},
261 ]
262 arena = BattleCode24Arena.__new__(BattleCode24Arena)
263 arena.submission = "src/mysubmission"
264 arena.log_local = tmp_log_dir
265 arena.config = config
266 arena.logger = MagicMock()
267 return arena
268
269 def _create_round_log_dir(self, tmp_log_dir, round_num):
270 """Helper to create round log directory."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected