22 lines
No EOL
484 B
TypeScript
22 lines
No EOL
484 B
TypeScript
import { solvables } from "../main.ts";
|
|
|
|
import type { Solvable } from "../solvable.ts";
|
|
import { readInput } from "../utils.ts";
|
|
|
|
class DayOne implements Solvable {
|
|
input = readInput('01')
|
|
|
|
public part1(): DayOne {
|
|
const vals: [string, number][] = this.input
|
|
.split("\n")
|
|
.map(line => [line[0], Number.parseInt(line.slice(1))]);
|
|
|
|
return this
|
|
}
|
|
|
|
public part2(): DayOne {
|
|
return this
|
|
}
|
|
}
|
|
|
|
solvables.push(new DayOne()) |