it s alive, need to smooth fitness

This commit is contained in:
2019-10-23 16:58:09 +02:00
parent 8511af2e2c
commit bb115a95df
4 changed files with 18 additions and 12 deletions

View File

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