예제 #1
0
def breed_programs(prog1, prog2):
    return breed_strings(prog1, prog2, WEIGHTED_COMMANDS, MUTATION_RATE)
def breed_programs(prog1, prog2):
    return breed_strings(prog1, prog2, WEIGHTED_COMMANDS, MUTATION_RATE)
예제 #3
0
def crossover(string1, string2):
    return breed_strings(string1, string2, CHARACTERS, MUTATION_RATE)