d10 optimizations

This commit is contained in:
Baipyrus 2023-12-10 16:19:30 +01:00
parent ec608aae63
commit eb0abaec30
2 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ while (open.length > 0) {
y: ny,
};
if (!relPos(bends[symbol], -i, -j)) continue;
if (closed.some((e) => compare(e, next))) continue;
if (!relPos(bends[symbol], -i, -j)) continue;
open.push(next);
}

View File

@ -73,8 +73,8 @@ while (open.length > 0) {
y: ny,
};
if (!relPos(bends[symbol], -i, -j)) continue;
if (closed.some((e) => compare(e, next))) continue;
if (!relPos(bends[symbol], -i, -j)) continue;
open.push(next);
}