old comments

This commit is contained in:
mtrx 2024-12-08 00:53:17 +01:00
parent 896d607450
commit 003b658aa2

View file

@ -51,10 +51,8 @@ class DaySix implements Solvable {
// if oob, return true
if (!nextStepInBounds[direction]) {
console.log('went oob')
return [true, x, y, direction]
} else {
// console.log(y, x, direction)
// if obstacle ahead, return false and current location
const [nextX, nextY] = this.lookAhead(x, y, direction)
if (this.map[nextY][nextX] === '#') {