/aoc23

Solutions to the Advent of Code 2023

Primary LanguagePythonDo What The F*ck You Want To Public LicenseWTFPL

Advent of Code 2023

This package contains solutions to the Advent of Code 2023 edition: https://adventofcode.com/2023/

Running

$ 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}

Auto-downloading Problem Input

You can provide the session cookie instead of the input data file:

$ session=01234dead...beef
$ poetry run python -m aoc23 solve 13 --cookie=$session

Evaluation

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

Developing

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.