├── .gitignore ├── README.md ├── build.py ├── package-lock.json ├── package.json ├── source ├── day1.ts └── prelude │ ├── add.ts │ ├── index.ts │ ├── ints.ts │ ├── nat.ts │ ├── parse-int.ts │ └── sub.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | build/ 3 | tsconfig.tsbuildinfo -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Cursed AoC 2 | 3 | Advent of Code, but I can only use TypeScript's type system to solve the puzzles. And yes, the inputs are also parsed by the type system :> 4 | 5 | ## Running this 6 | 7 | You'll need: 8 | 9 | 1. A Python3 interpreter --- look for Python files in this repo if you're curious about the **why** of that!; 10 | 2. Node.js; and 11 | 3. Unwavering faith in whatever gods you believe in :> 12 | 13 | Once you've managed to gather all ingredients^W requisites, you can run: 14 | 15 | npm run build 16 | npm run type-check 17 | 18 | If it compiles, then all of the code is correct. If it doesn't? Well, good luck. 19 | 20 | ## Note 21 | 22 | All of the puzzles will only solve the _example input_. Sadly trying to apply this to the real puzzle inputs is just going to make your computer cry. 23 | 24 | --- 25 | 26 |
27 |
29 |
30 |
31 |
32 | To the extent possible under law,
33 |
35 | Q.
36 | has waived all copyright and related or neighboring rights to
37 | this work.
38 |