adjust mutation rate
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 1m7s
All checks were successful
Build Simulation and Test / Run All Tests (push) Successful in 1m7s
This commit is contained in:
parent
0d95e85d83
commit
bce07db40e
@ -315,10 +315,10 @@ class DefaultCell(BaseEntity):
|
||||
duplicate_y_2 += random.randint(-self.max_visual_width, self.max_visual_width)
|
||||
|
||||
new_cell = DefaultCell(Position(x=int(duplicate_x), y=int(duplicate_y)), Rotation(angle=random.randint(0, 359)))
|
||||
new_cell.set_brain(self.behavioral_model.mutate(0.025))
|
||||
new_cell.set_brain(self.behavioral_model.mutate(0.05))
|
||||
|
||||
new_cell_2 = DefaultCell(Position(x=int(duplicate_x_2), y=int(duplicate_y_2)), Rotation(angle=random.randint(0, 359)))
|
||||
new_cell_2.set_brain(self.behavioral_model.mutate(0.025))
|
||||
new_cell_2.set_brain(self.behavioral_model.mutate(0.05))
|
||||
|
||||
return [new_cell, new_cell_2]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user