File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def mutate_move(genes):
169
169
toMove = genes [start :stop ]
170
170
genes [start :stop ] = []
171
171
index = random .choice (range (len (genes )))
172
- if index = = start :
172
+ if index > = start :
173
173
index += 1
174
174
genes [index :index ] = toMove
175
175
return True
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def mutate_move(genes):
200
200
toMove = genes [start :stop ]
201
201
genes [start :stop ] = []
202
202
index = random .choice (range (len (genes )))
203
- if index = = start :
203
+ if index > = start :
204
204
index += 1
205
205
genes [index :index ] = toMove
206
206
return True
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ def mudar_mover(genes):
170
170
aMover = genes [principio :fin ]
171
171
genes [principio :fin ] = []
172
172
índice = random .choice (range (len (genes )))
173
- if índice = = principio :
173
+ if índice > = principio :
174
174
índice += 1
175
175
genes [índice :índice ] = aMover
176
176
return True
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def mudar_mover(genes):
200
200
aMover = genes [principio :fin ]
201
201
genes [principio :fin ] = []
202
202
índice = random .choice (range (len (genes )))
203
- if índice = = principio :
203
+ if índice > = principio :
204
204
índice += 1
205
205
genes [índice :índice ] = aMover
206
206
return True
You can’t perform that action at this time.
0 commit comments