Skip to content

Commit 2d9df37

Browse files
committed
nit
1 parent c6cd11f commit 2d9df37

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

codeclash/tournaments/ladder.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,10 @@
2828

2929

3030
def _player_slug(branch_init: str) -> str:
31-
"""Turn a ``human/<author>/<bot>`` init branch into a bare, filesystem-safe player name:
31+
"""
32+
Turn a ``human/<author>/<bot>`` init branch into a bare, filesystem-safe player name:
3233
strip the ``human/`` prefix and join the rest with ``__`` (e.g. ``human/aleksiy325/snek-two``
3334
-> ``aleksiy325__snek-two``).
34-
35-
RoboCode also uses this name as a Java *package* (``<name>.MyTank``), which must be a bare
36-
identifier that does not start with the engine's reserved ``robocode`` namespace. The RoboCode
37-
ladder branches are named so the plain slug already satisfies that (``human/robo_code/walls``
38-
-> ``robo_code__walls``), so no game-specific handling is needed here.
3935
"""
4036
return branch_init.replace("human/", "").replace("/", "__")
4137

0 commit comments

Comments
 (0)