This repository contains my solutions for Advent of Code problems. All solutions are implemented in TypeScript and JavaScript, runnable with modern Node.js.
Prerequisites: install Node.js 14 (LTS) or later.
- Create an account at https://adventofcode.com.
- Fork this repo
- Clone the forked repository
cd
into the repository and runnpm install
- Copy the example environment file to
.env
:
cp .env.example .env
-
In the created
.env
file, add your AOC session token to theSESSION
variable -
Scaffold a puzzle:
npm scaffold # Scaffold the current day
npm run scaffold -- --year 2015 --day 1 # Scaffold [year] [day]
- Run a puzzle:
npm start # Run the current day
npm start 2015 1 # Run [year] [day]
Run the tests with:
npm test
Run the tests (in parallel) with:
npm run test:parallel
The MIT License (MIT). Please see License File for more information.