2024 day 16 part 1

This commit is contained in:
2024-12-16 22:09:01 +01:00
parent 1c3cb46e40
commit 163455a42a
7 changed files with 266 additions and 0 deletions

15
2024/day-16/day16.ts Normal file
View File

@@ -0,0 +1,15 @@
import { solveMaze } from "./maze.ts"
export function part1(input: string) {
const grid = parseInput(input)
return solveMaze(grid)
}
export function part2(input: string) {
return 0
}
function parseInput(input: string) {
const lines = input.split("\n")
return lines.map((l) => l.split(""))
}