(conn, teams, maps)
| 286 | |
| 287 | |
| 288 | def 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 | |
| 303 | def run_tournament(conn, maps: List[Map], teams: List[Team]): |
no test coverage detected