Zorndorff's advent of code workspace and solutions 2021. Excuse to practive test driven development.
npm i
npm run test
or npm tun test -- src/day_01.spec.js
Running a solver
Run node . --help
to see available options.
Usage: advent [options] <inputFile>
Options:
-V, --version output the version number
-d, --day <daytoprocess> day of the advent
-p, --part <part> Which part to process 1, or 2
--debug enable debugging
-h, --help display help for command
Download your input
file to the workspace.
Execute the correct solver for the day in question.
node . --day 2 inputs/day_02.input.txt