mirror of
https://github.com/Baipyrus/AoC-23.git
synced 2024-12-26 03:51:45 +00:00
d10 bugfix
This commit is contained in:
parent
de2b777f37
commit
35f32b2a15
@ -74,7 +74,7 @@ while (open.length > 0) {
|
||||
};
|
||||
|
||||
if (closed.some((e) => compare(e, next))) continue;
|
||||
if (!relPos(bends[symbol], -i, -j)) continue;
|
||||
if (!bends[symbol] || !relPos(bends[symbol], -i, -j)) continue;
|
||||
|
||||
open.push(next);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ while (open.length > 0) {
|
||||
};
|
||||
|
||||
if (closed.some((e) => compare(e, next))) continue;
|
||||
if (!relPos(bends[symbol], -i, -j)) continue;
|
||||
if (!bends[symbol] || !relPos(bends[symbol], -i, -j)) continue;
|
||||
|
||||
open.push(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user