mirror of
https://github.com/ershisan99/advent-of-code.git
synced 2025-12-16 20:49:24 +00:00
16 lines
299 B
TypeScript
16 lines
299 B
TypeScript
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(""))
|
|
}
|