Skip to content

Instantly share code, notes, and snippets.

@gsurma
Created December 23, 2018 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsurma/940e94de55cbde4855074164fa54679f to your computer and use it in GitHub Desktop.
Save gsurma/940e94de55cbde4855074164fa54679f to your computer and use it in GitHub Desktop.
def _strongest_parents(self, population, env):
if population is None:
population = self._initial_population()
scores_for_chromosomes = []
for i in range(0, len(population)):
chromosome = population[i]
scores_for_chromosomes.append((chromosome, self._gameplay_for_chromosome(chromosome, env)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment