2020 uses node.js and 2021 uses deno.
new: use deno
❯ deno --version
deno 1.16.3 (release, x86_64-apple-darwin)
v8 9.7.106.5
typescript 4.4.2
node >= 12
From project root:
yarn run:<mode> <day> <part>
where:
- mode:
data
orsample
- day: 1-25
- part: 1 or 2
Navigate to a day
$> cd 2020/day1
then run node
:
$> node .
Since each day has 2 problems, there will either be 2 outputs or a commented out section for part 1 or part 2.
Each prompt is linked in the solution header.