adjustements

This commit is contained in:
2019-10-29 11:00:57 +01:00
parent 51f719184d
commit 5c27c3c72f
4 changed files with 25 additions and 15 deletions

View File

@@ -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)