docs: def get_fitness(self, chromosome):
          """ Get the fitness score for a chromosome, using the cached value if available. """
          fitness = self.fitness_cache.get(chromosome.dna)
  
          if fitness is None:
              fitness = self.eval_fitness(chromosome)
              self.fitness_cache[chromosome.dna] = fitness
  
          return fitness