Advent of Code ๐
This repo is used to help maintain my JavaScript solutions for Advent of Code.
-
Install dependencies
yarn
-
Bask in the holiday cheer ๐
YEAR=20XX DAY=0X yarn new
Inside the /inputs
directory, you'll see have an input.txt
and example.txt
for each day you are solving. The input.txt
is your unique Advent of Code input. The example.txt
is for the example input given in the text of the question.
If you want to have your input automatically downloaded from the Advent of Code API, simply add a .env
file at the root of your project with your Advent of Code session ID. This is the cookie that is set on your browser when you log in to the website.
YEAR=20XX DAY=0X yarn test --watch
YEAR=20XX DAY=0X yarn solve