File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929
3030def _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
You can’t perform that action at this time.
0 commit comments