Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelaorden committed Dec 29, 2023
1 parent de25952 commit 469e3e4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/days/10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const displayLoop = (m: Maze, loop: Point[]) => {

const cleanMap = (m: Maze, loop: Point[]) => {
for (let y = 0; y < m.grid.length; y++) {
/* @ts-expect-error is NOT undefined for god sake */
/* @ts-expect-error is NOT undefined */
for (let x = 0; x < m.grid[y].length; x++) {
const coords: Point = [y, x]
const char = pathOr(m.grid, [y, x], '?')
Expand All @@ -160,9 +160,6 @@ const cleanMap = (m: Maze, loop: Point[]) => {
)
}
}

/* const map = m.grid.map((row) => row.join('') + '\n').join('')
console.log(map) */
}

export function day10PartOne(sample: string, input: string) {
Expand All @@ -178,7 +175,6 @@ export function day10PartOne(sample: string, input: string) {
}

const countHowManyInside = (maze: Maze): number => {
//console.log(maze.grid)
return maze.grid
.map(
(row) =>
Expand Down

0 comments on commit 469e3e4

Please sign in to comment.