adjustements
This commit is contained in:
@@ -34,7 +34,7 @@ def genetic_selection(brains):
|
||||
# proportionnally to its relative fitness
|
||||
wheel = []
|
||||
for b in brains:
|
||||
wheel += [b] * b.fitness
|
||||
wheel += [b] * int(b.fitness)
|
||||
|
||||
tot_fitness = len(wheel)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user