2020-12-01 18:12:30 +01:00
|
|
|
import fs from "fs";
|
|
|
|
|
|
|
|
/**
|
2020-12-16 12:02:17 +01:00
|
|
|
* Main function for Part 1
|
2020-12-01 18:12:30 +01:00
|
|
|
*
|
|
|
|
* @param {string} data - Puzzle input as a single string.
|
|
|
|
*/
|
|
|
|
async function main(data) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
fs.readFile("input", (err, data) => {
|
|
|
|
if (err) throw err;
|
2020-12-18 10:38:17 +01:00
|
|
|
console.time("Part 1");
|
2020-12-17 12:51:38 +01:00
|
|
|
main(data.toString())
|
|
|
|
.then((...args) => {
|
|
|
|
console.timeEnd("Part 1");
|
2020-12-18 10:38:17 +01:00
|
|
|
console.log(...args);
|
2020-12-17 12:51:38 +01:00
|
|
|
})
|
|
|
|
.catch(console.error);
|
2020-12-01 18:12:30 +01:00
|
|
|
});
|