new selections need to set a time limit

This commit is contained in:
2019-10-24 10:03:18 +02:00
parent b1f0bab9a7
commit 132cec2445
4 changed files with 54 additions and 25 deletions

View File

@@ -7,14 +7,16 @@ GX = 1000
GY = 1000
CELL_COLOR = (80,80,80)
CAR_SIZE = 20
CAR_MAX_SPEED = 6
CAR_MAX_FITNESS = 5000
CAR_MAX_SPEED = 100
CAR_MAX_FITNESS = 100
CAR_STEERING_FACTOR = 10
VISION_LENGTH = 60
VISION_SPAN = 35 # degrees
THROTTLE_POWER = 3
MUTATION_RATE = 0.01
SELECTION_ALG = "kway" # roulette
KWAY_TOURNAMENT_PLAYERS = 3
pygame.init()
screen = pygame.display.set_mode((GX, GY), FLAGS)