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
cdinto the repository and runnpm install- Copy the example environment file to
.env:
cp .env.example .env-
In the created
.envfile, add your AOC session token to theSESSIONvariable -
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 testRun the tests (in parallel) with:
npm run test:parallelThe MIT License (MIT). Please see License File for more information.