Skip to content

Commit

Permalink
Fix tournament
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Oct 10, 2024
1 parent 079e371 commit 6763272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tournament.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
from argparse import ArgumentParser
import itertools
from argparse import ArgumentParser

import pygame
import tqdm

from racer.constants import framerate
Expand All @@ -13,7 +14,9 @@
def get_laps(car_info):
return car_info.round + (car_info.next_waypoint / len(car_info.track.lines))


def main():
pygame.init()
game_state = single_game()

results = [(b, c, get_laps(c)) for b, c in game_state.bots.items()]
Expand Down

0 comments on commit 6763272

Please sign in to comment.