MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / cleanup

Function cleanup

battlecode-manager/battlecode_cli.py:155–165  ·  view source on GitHub ↗

Clean up that needs to be done at the end of a game

(dockers, args, sock_file)

Source from the content-addressed store, hash-verified

153
154
155def cleanup(dockers, args, sock_file):
156 '''
157 Clean up that needs to be done at the end of a game
158 '''
159 for player_key in dockers:
160 docker_inst = dockers[player_key]
161 docker_inst.destroy()
162
163 if isinstance(sock_file, str) or isinstance(sock_file, bytes):
164 # only unlink unix sockets
165 os.unlink(sock_file)
166
167
168def get_map(map_name):

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected