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 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] === '#') {
|
||||||
|
|
Loading…
Reference in a new issue