Skip to content

Advent of Code 2021, but I can only use TypeScript's type system to solve the puzzles

Notifications You must be signed in to change notification settings

robotlolita/cursed-aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursed AoC

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 :>

Running this

You'll need:

  1. A Python3 interpreter --- look for Python files in this repo if you're curious about the why of that!;
  2. Node.js; and
  3. Unwavering faith in whatever gods you believe in :>

Once you've managed to gather all ingredients^W requisites, you can run:

npm run build
npm run type-check

If it compiles, then all of the code is correct. If it doesn't? Well, good luck.

Note

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.


CC0
To the extent possible under law, Q. has waived all copyright and related or neighboring rights to this work.

About

Advent of Code 2021, but I can only use TypeScript's type system to solve the puzzles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published