Fix edgecases resulting in conflict loops.

This commit is contained in:
hal8174 2024-03-23 12:29:18 +01:00
parent a145c4b70c
commit 8c29cb1e53
3 changed files with 180 additions and 138 deletions

View file

@ -70,7 +70,7 @@ impl Problem {
for (i, path) in self.path.iter().enumerate() {
if i != without {
for p in path {
let weight = 0.5;
let weight = 1.0;
let x = p.0.x as usize;
let y = p.0.y as usize;