(arena, rounds, players)
| 54 | |
| 55 | |
| 56 | def prompt_game_desc(arena, rounds, players): |
| 57 | # Return as a LiteralString to get proper YAML literal block scalar formatting |
| 58 | content = f"""You are a software developer ({{{{player_id}}}}) competing in a coding game called {arena.name}. |
| 59 | {arena.description} |
| 60 | |
| 61 | The game is played in {rounds} rounds. For every round, you (and your competitors) edit program code that controls your bot. This is round {{{{round}}}}. |
| 62 | After you and your competitor finish editing your codebases, the game is run automatically. |
| 63 | |
| 64 | Your task: improve the bot in `{arena.submission}`, located in {{{{working_dir}}}}. |
| 65 | {{{{working_dir}}}} is your codebase, which contains both your both and supporting assets. |
| 66 | All of your commands will be executed in the {{{{working_dir}}}} directory (see notes below).""" |
| 67 | return LiteralString(content) |
| 68 | |
| 69 | |
| 70 | def get_config(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc): |
nothing calls this directly
no test coverage detected