Steps to setup the project one can solve/run these tasks. Make sure to run on WSL or any Linux distro.
- Run
npm install
once to install tsx. - Copy your advent of code copy from your browser console into a file called
.session-cookie
to autofetch the inputs.
Run the following code for each new day.
- Run
./setup.sh <day_nr>
to copy a template and the input into directoryday<day_nr>
. - Manually copy or fill in some input in the generated
example_input
file. - Open the
solve.ts
and solve it! - Run
npm run solve
to solve the input file andnpm run solve example
for the example input.