Skip to content

spgill/AdventOfCode2022

Repository files navigation

Advent of Code 2022

My solutions are targeted at CPython >= 3.9.


To execute my solution, you will need to install the runtime dependencies (preferably inside a venv).

pip install --user -r ./requirements.txt


Any of the solutions can be executed in any of the following ways:

python3 dayXX.py path/to/input.txt

or

./dayXX.py path/to/input.txt

or

cat path/to/input.txt | ./dayXX.py -

Some solutions may have optional properties that can be specified to change execution behavior (for instance, to show unnecessary output or to just have a bit of fun). They can be specified like so:

./dayXX.py --option draw

or

./dayXX.py --option cycles=100

or multiple values at once

./dayXX.py --option P=0.01 --option I=1 --option D=20 --option smooth

For more information about the syntax, inspect the help for any day's solution like so:

./dayXX.py --help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages