-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
26 lines (20 loc) · 1.03 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { run } from './runner.js';
// Instructions:
// For each day, create a new TS file and a puzzle input file consisting
// of the day number and then the extension .ts or .txt.
// For example, on day 20 you would create "20.ts" and "20.txt"
// Don't forget to put a 0 before days 1-9 (so day 5 becomes "05.ts") but not on
// any other days. This ensures the days are sorted properly in the files view.
// Each day in the TS file, all you have to do is write and export a
// part1(prompt) method and paste your puzzle input in the text file.
// You can also return a value and it will be printed out.
// The input will be read and passed to your code automatically.
// Add a part2() method when you're ready.
// Look at 01.ts for an example
// Update the day in runner.run() each day to change which day is run.
// Your code will be automatically timed.
// For a menu where users can select a day, use this
// the argument for maxDay is optional, remove it for no limit
// runner.getDay(5).then((day) => runner.run(day))
await run(21);
('');