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 oob, return true
if (!nextStepInBounds[direction]) { if (!nextStepInBounds[direction]) {
console.log('went oob')
return [true, x, y, direction] return [true, x, y, direction]
} else { } else {
// console.log(y, x, direction)
// if obstacle ahead, return false and current location // if obstacle ahead, return false and current location
const [nextX, nextY] = this.lookAhead(x, y, direction) const [nextX, nextY] = this.lookAhead(x, y, direction)
if (this.map[nextY][nextX] === '#') { if (this.map[nextY][nextX] === '#') {