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

Function queue_initial_round

scripts/tournament_single_elim.py:288–300  ·  view source on GitHub ↗
(conn, teams, maps)

Source from the content-addressed store, hash-verified

286
287
288def queue_initial_round(conn, teams, maps):
289 assert len(maps) == NUM_MAPS_PER_GAME
290 round_num = 0
291 cur = conn.cursor()
292 max_index = int(len(teams) / 2)
293
294 logging.debug('Queuing Round 0...')
295 for index in range(max_index):
296 red = (teams[2 * index], None)
297 blue = (teams[2 * index + 1], None)
298 queue_match(conn, round_num, index, red, blue, maps)
299 conn.commit()
300 cur.close()
301
302
303def run_tournament(conn, maps: List[Map], teams: List[Team]):

Callers 1

run_tournamentFunction · 0.85

Calls 2

queue_matchFunction · 0.85
debugMethod · 0.80

Tested by

no test coverage detected