Solutions for Advent of Code puzzles in languages I enjoy.
Update the AOC_LANGUAGE and AOC_YEAR environment variables in bin/env to match your preferences. They determine which puzzles to download and which solution files to run and submit.
$ bin/new <day><part> # start a new puzzle in the active year
$ bin/run <day><part> # run a puzzle solution in the active year
$ bin/submit <day><part> # submit a puzzle answer in the active yearFor example:
$ bin/new 1a # download the 2015, day 1, part 1 puzzle and its input and generate solution files
$ bin/run 25b # output my 2023, day 25, part 2 answer
$ bin/submit 25b # submit my 2023, day 25, part 2 answerTo download your input, you need to include your AOC session cookie with each API request. You can find your cookie by going to adventofcode.com and opening your browser's developer tools.
Find the cookie named "session" and copy its value into a .aoc-session-cookie file at the root of this project (it won't be tracked).
When the value eventually expires, repeat these steps.