generated from amorriscode/advent-of-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solve.js
29 lines (20 loc) · 926 Bytes
/
solve.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
27
28
29
import colors from 'colors'
export default async (year, day, solutionsPromise, inputsPromise) => {
// @TODO: Fix this jank
const { part1, part2 } = await solutionsPromise
const { getInput } = await inputsPromise
console.log(' '.bgRed)
console.log(
` ADVENT OF CODE ${year} `.bold.brightRed.bgGreen
)
console.log(' '.bgRed)
console.log('')
console.log(`🎄🎄 DAY ${day} PART ONE 🎄🎄`.bold.green)
console.log(`${await part1(parseInput(await getInput()))}\n`)
console.log(`🎄🎄 DAY ${day} PART TWO 🎄🎄`.bold.green)
console.log(await part2(parseInput(await getInput())))
console.log('')
console.log(' '.bgRed)
console.log(' '.bgGreen)
console.log(' '.bgRed)
}