MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / serialize_team

Function serialize_team

scripts/tournament_serialize.py:65–73  ·  view source on GitHub ↗

Returns the deserialized version of a team.

(team_id)

Source from the content-addressed store, hash-verified

63
64
65def serialize_team(team_id):
66 '''
67 Returns the deserialized version of a team.
68 '''
69 return {
70 'id': team_id,
71 'name': TEAM_ID_TO_NAME[team_id],
72 'avatar': TEAM_ID_TO_AVATAR[team_id]
73 }
74
75
76def serialize_match(cur, round_num: int, match_index: int):

Callers 1

serialize_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected