genetics code (untested)

This commit is contained in:
2019-10-22 15:41:12 +02:00
parent 65808e4c62
commit 80319712d0
6 changed files with 89 additions and 15 deletions

View File

@@ -3,13 +3,16 @@ from pygame.locals import HWSURFACE, DOUBLEBUF
FLAGS = HWSURFACE | DOUBLEBUF #| FULLSCREEN
GX = 1000
GY = 1000
CELL_COLOR = (80,80,80)
CAR_SIZE=20
VISION_LENGTH = 50
VISION_SPAN = 25 # degrees
THROTTLE_POWER = 3
GX = 1000
GY = 1000
CELL_COLOR = (80,80,80)
CAR_SIZE = 20
CAR_MAX_SPEED = 7
CAR_STEERING_FACTOR = 10
VISION_LENGTH = 50
VISION_SPAN = 25 # degrees
THROTTLE_POWER = 3
pygame.init()
screen = pygame.display.set_mode((GX, GY), FLAGS)