Initial commit

This commit is contained in:
Joshua Seigler 2020-12-02 10:06:38 -05:00
commit f3d555f01c
12 changed files with 370 additions and 0 deletions

View file

@ -0,0 +1,24 @@
const path = require('path')
const { read, position } = require('promise-path')
const fromHere = position(__dirname)
const report = (...messages) => console.log(`[${require(fromHere('../../package.json')).logName} / ${__dirname.split(path.sep).pop()}]`, ...messages)
async function run () {
const input = (await read(fromHere('input.txt'), 'utf8')).trim()
await solveForFirstStar(input)
await solveForSecondStar(input)
}
async function solveForFirstStar (input) {
const solution = 'UNSOLVED'
report('Input:', input)
report('Solution 1:', solution)
}
async function solveForSecondStar (input) {
const solution = 'UNSOLVED'
report('Solution 2:', solution)
}
run()