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

Method game_name

codeclash/viewer/app.py:277–289  ·  view source on GitHub ↗

Get game name from config

(self)

Source from the content-addressed store, hash-verified

275
276 @property
277 def game_name(self) -> str:
278 """Get game name from config"""
279 # Try config.game.name first
280 game_name = self.get_path("config.game.name")
281 if game_name:
282 return game_name
283
284 # Fallback to game.name
285 game_name = self.get_path("game.name")
286 if game_name:
287 return game_name
288
289 return ""
290
291 @property
292 def players_config(self) -> list[dict[str, Any]]:

Callers

nothing calls this directly

Calls 1

get_pathMethod · 0.95

Tested by

no test coverage detected