2015-10-04 | Paul Boddie | raw files shortlog changelog graph | Fixed colour exchange. | |
optimiser.py (file) |
1.1 --- a/optimiser.py Sun Oct 04 00:32:47 2015 +0200 1.2 +++ b/optimiser.py Sun Oct 04 17:51:40 2015 +0200 1.3 @@ -190,7 +190,7 @@ 1.4 1.5 if least: 1.6 i = randrange(4, len(c)) 1.7 - c = c[:3] + c[i:i+1] + c[4:i] + c[i+1:] 1.8 + c = c[:3] + c[i:i+1] + c[3:i] + c[i+1:] 1.9 most = [value for n, value in c[:4]] 1.10 least = [value for n, value in c[4:]] 1.11