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

Function prompt_game_desc

codeclash/utils/generate_confs.py:56–67  ·  view source on GitHub ↗
(arena, rounds, players)

Source from the content-addressed store, hash-verified

54
55
56def 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
61The game is played in {rounds} rounds. For every round, you (and your competitors) edit program code that controls your bot. This is round {{{{round}}}}.
62After you and your competitor finish editing your codebases, the game is run automatically.
63
64Your 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.
66All of your commands will be executed in the {{{{working_dir}}}} directory (see notes below)."""
67 return LiteralString(content)
68
69
70def get_config(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc):

Callers

nothing calls this directly

Calls 1

LiteralStringClass · 0.85

Tested by

no test coverage detected