A simple Advent of code starter project with Typescript and jest for testing.
Initial setup
npm install
For each day, where X is the day number (1-25):
- run
npm run setup Xfrom your terminal - Visit https://adventofcode.com/2021/day/X/input and copy the contents in your
inputs/dayX/part1.txtfile - Implement the necessary logic in
solveForPart1 - Do the same for part 2
npm run start Xto run the day's testnpm testto run your tests- Profit! 🎉
Some code was liberally taken from https://github.com/stemmlerjs/simple-typescript-starter after some serious head-desking