zorndorff / advent-of-code

my solves for the 2021 advent of code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of code 2021

Zorndorff's advent of code workspace and solutions 2021. Excuse to practive test driven development.

Install

npm i

Tests

npm run test or npm tun test -- src/day_01.spec.js

Running

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

About

my solves for the 2021 advent of code.


Languages

Language:JavaScript 100.0%