All solutions to the Advent of Code days. (That I've completed)
All code is written in Python3
I started this in 2019 competitively, but I am only aiming for private leaderboards if i get top 100 then it is a bonus.
they are stored in google sheets here: read-only link
done with either:
- python.exe -m cProfile dayXX.py
- python.exe -m timeit -p -s "print=lambda *x: None" -c "$(cat dayXX.py)"
To generate current day files:
use in root folder
python generate.py
options:
-y (--year)
-d (--day)
-s (--session)
-i (--input)
-o (--overwire)
-a (--all)
--year
specifies the year to generate the file for. (default: current year)
--day
specifies the day to generate. (default: current day)
--session
whether or not to add the session loading code to the day file (default: false). The session variable should
be located in a .env
file, located in the root folder.
--input
whether or not to create te input file. (default: false)
--overwrite
whether or not the overwrite the existing day file. (default: false)
--all
Sets --session --input --overwrite
to true. (default: false)
To run day file:
cd 2019/
python dayXX.py