Skip to content

Repository files navigation

Advent of code

Solutions to advent of code problems. A new one gets released for each day in December until Christmas and they generally get progressively harder as the month goes on. If you haven't given it a go then you should - it's really fun.

This isn't really designed for you to download and run, but if you really want to you'll need to provide your own input files. You can get yours from advent of code. Put them in the same directory as the problem you want to run in a file named inputXX.txt, where XX is the two digit day of the month, e.g. input02.txt or input24.txt.

Once you've done that you can run it, though you'll need a runtime that can do TypeScript.

Node 22.6+

node --experimental-strip-types aoc.ts YYYY/dayMM.ts e.g. node --experimental-strip-types aoc.ts 2020/day12.ts

Bun

bun aoc.ts YYYY/dayMM.ts e.g. bun aoc.ts 2020/day12.ts

Disclaimer

This is not my most elegant work. A new problem gets released at 6AM local time for me and I like to try to solve it before I go to work, so a working solution is (in this case) more important to me than an elegant one. Sometimes I come back and clean up the code, but not always.

About

Solutions to advent of code problems

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages