(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc)
| 68 | |
| 69 | |
| 70 | def get_config(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc): |
| 71 | return { |
| 72 | "tournament": { |
| 73 | "rounds": rounds, |
| 74 | }, |
| 75 | "game": { |
| 76 | "name": arena.name, |
| 77 | "sims_per_round": simulations, |
| 78 | "args": arena.default_args, |
| 79 | }, |
| 80 | "players": [ |
| 81 | { |
| 82 | "agent": "mini", |
| 83 | "name": get_name(p), |
| 84 | "config": {"agent": IncludeTag("mini/default.yaml"), "model": p}, |
| 85 | } |
| 86 | for p in players |
| 87 | ], |
| 88 | "prompts": {"game_description": prompt_func(arena, rounds, players)}, |
| 89 | } |
| 90 | |
| 91 | |
| 92 | def clean_config(config_path: str): |
no test coverage detected