DummyGame
Simple test game for development and debugging.
Overview
DummyGame is a minimal game implementation used for testing the CodeClash framework.
Implementation
codeclash.arenas.dummy.dummy.DummyArena
DummyArena(config: dict, *, tournament_id: str, local_output_dir: Path, keep_containers: bool = False)
Bases: CodeArena
Source code in codeclash/arenas/arena.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
name
class-attribute
instance-attribute
name: str = 'Dummy'
description
class-attribute
instance-attribute
description: str = 'WARNING: This is a dummy game meant for testing the CodeClash infrastructure. It does not represent a real game.'
submission
class-attribute
instance-attribute
submission: str = 'main.py'
execute_round
execute_round(agents: list[Player]) -> None
Source code in codeclash/arenas/dummy/dummy.py
15 16 17 18 19 | |
get_results
get_results(agents: list[Player], round_num: int, stats: RoundStats)
Source code in codeclash/arenas/dummy/dummy.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
validate_code
validate_code(agent: Player) -> tuple[bool, str | None]
Source code in codeclash/arenas/dummy/dummy.py
39 40 41 | |
Usage
Useful for: - Testing tournament infrastructure - Debugging agent implementations - Quick validation of configurations
Configuration Example
game:
name: DummyGame
rounds: 3
sims_per_round: 1
players:
- name: TestAgent
model: gpt-4