Advent of Code 2022

Advent of Code 2022

https://adventofcode.com/2022

Initial setup

  1. Copy .env.example to .env and populate vars

Solve daily

  1. Copy template.js to n.js where n = day number e.g. 1.js
  2. Create n-example.txt (e.g. 1-example.txt) with example input from that day's puzzle description
  3. Write code for part 1
  4. Run src/n.js (e.g. node src/1.js) to run part 1 with the example input
  5. Once this gives the correct answer, update solve function to run with real input
  6. Enter result on AOC site and if correct rinse and repeat for part 2