This package contains solutions to the Advent of Code 2023 edition: https://adventofcode.com/2023/
$ day=1 # which challenge you want to solve
$ file=day01.in # where the challenge input is stored
$ poetry install --without=dev
$ poetry run python -m aoc23 solve ${day} ${file}
You can provide the session
cookie instead of the input data file:
$ session=01234dead...beef
$ poetry run python -m aoc23 solve 13 --cookie=$session
There is an option to run all of the solvers and show useful stats, such as lines of code in the solution, and how long the solver took. Just provide all of the input files, or a cookie:
$ session=01234dead...beef
$ poetry run python -m aoc23 evaluate *.txt
$ poetry run python -m aoc23 evaluate --cookie=$session
Please install the pre-commit hooks to make sure your code passes my very high quality standards. /s
$ poetry install --with=dev
$ poetry run pre-commit install
Add unit tests for all solutions and utility functions.