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

Method name_for

codeclash/arenas/halite2/replay.py:76–81  ·  view source on GitHub ↗
(owner: int)

Source from the content-addressed store, hash-verified

74 engine_names = d.get("player_names", [])
75
76 def name_for(owner: int) -> str:
77 if players and len(players) > owner:
78 return players[owner]["name"]
79 if len(engine_names) > owner:
80 return engine_names[owner]
81 return f"Player {owner}"
82
83 static_planets = [
84 {"id": p["id"], "x": round(p["x"], 2), "y": round(p["y"], 2), "r": round(p["r"], 2)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected