old comments
This commit is contained in:
parent
896d607450
commit
003b658aa2
1 changed files with 0 additions and 2 deletions
|
@ -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] === '#') {
|
||||
|
|
Loading…
Reference in a new issue