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

Function _arena_from_name

codeclash/replay/__init__.py:96–102  ·  view source on GitHub ↗

Derive the arena from a tournament folder name. e.g. ``PvpTournament.RobotRumble.r1.s1.p2.flail.luisa.260702175500`` -> ``RobotRumble``.

(folder: Path)

Source from the content-addressed store, hash-verified

94
95 return BomberlandReplayer()
96 if arena == "Bridge":
97 from codeclash.arenas.bridge.replay import BridgeReplayer
98
99 return BridgeReplayer()
100 if arena == "Figgie":
101 from codeclash.arenas.figgie.replay import FiggieReplayer
102
103 return FiggieReplayer()
104 return None
105

Callers 1

load_tournamentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected