Merge commit 'da9a574d563eec824f190178987989c7d5e9646b'
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import pygame
|
||||
import sys
|
||||
from gameobjects import *
|
||||
from genetic_alg import GeneticAlgorithm
|
||||
|
||||
POPULATION_SIZE = 50
|
||||
MUTATION_RATE = 0.5
|
||||
POPULATION_BEST = 0.2
|
||||
|
||||
pygame.init()
|
||||
|
||||
@@ -40,6 +45,8 @@ def get_features(horse):
|
||||
HEIGHT, BARRIER_SPEED]
|
||||
return features
|
||||
|
||||
genecticAlg = GeneticAlgorithm(POPULATION_SIZE, MUTATION_RATE, POPULATION_BEST)
|
||||
|
||||
UI.add_horses(horses) # Add horses to UI
|
||||
while True:
|
||||
for event in pygame.event.get():
|
||||
|
||||
Reference in New Issue
Block a user