aoc-2023/day_16/solve.ts

10 lines
331 B
TypeScript
Raw Permalink Normal View History

2024-12-09 22:41:02 +09:00
import { toLightMap, lightTrasport, RIGHT, toString, clearLight, countPoweredTile } from "./lightMap.ts";
const input = await Deno.readTextFile("input.txt");
const lightMap = toLightMap(input);
lightTrasport(lightMap, [0, 0], RIGHT);
console.log(toString(lightMap));
const count = countPoweredTile(lightMap);
console.log(count);