from pygame.locals import * from constants import START_POINT, screen_size from car import Car from circuit import Circuit from game_loops import game_loop, agent_inputs import model import numpy as np from Heuristique import heuristic, params #TODO gestion score par voiture pygame.init() screen = pygame.display.set_mode(screen_size) circuit = Circuit() circuit_img = circuit.images[ 0] # pour tester les collisions, le checkpoint n'est pas important circuit.display() clock = pygame.time.Clock() car = Car(0., START_POINT) running = True vectors = [ pygame.Vector2(0., -1), pygame.Vector2(1, -1), pygame.Vector2(1, -0.5), pygame.Vector2(1, 0.), pygame.Vector2(1, 0.5), pygame.Vector2(1, 1), pygame.Vector2(0., 1) ] score = 0 checkpoint = 0