def simulateAndRecord(self, f= '', time = 1000): result = CubeGrabbingWorld.simulateIndividual(self.dna, display = False, recordThis = True, filename = f, time = time) self.fitness = result[0] self.replay = result[1] return self.fitness
def simulate(self, time = 1000): result = CubeGrabbingWorld.simulateIndividual(self.dna, False, '', time = time) self.fitness = result[0] return self.fitness