Skip to content

Commit c914798

Browse files
committed
Add player_id and game_description to template vars
1 parent 53feda4 commit c914798

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codeclash/agents/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ def get_agent(config: dict, game: CodeGame) -> Player:
1616
"game_id": game.game_id,
1717
"rounds": game.rounds,
1818
"round": game.round,
19+
"player_id": config["name"],
20+
"game_description": game.config.get("description", ""),
1921
}
2022
return agents(config, environment, format_vars)

0 commit comments

Comments
 (0)