Commit 33d836ef authored by Mathieu Valois's avatar Mathieu Valois
Browse files

Fix issue where closest word was not correctly chosen

parent fd22427b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ class Robustness:
				if dist < lowest_distance:
					lowest_distance = dist
					lowest_index = j
			self.swap(i, j)
			self.swap(i, lowest_index)
			after = time.time()
			print("Found the %dth closest word in %d seconds" % (i, after-before))
			yield self.l[i]