These are my solutions to the 2024 version of Advent of Code, written in C++
This year, I've decided to start using third party libraries, in particular Compile Time Regular Expressions, and will be using the Conan package manager as I'm already famailiar with it and it allows me to use some Python utilities like aocd
- Python
- Conan -
pip install conan
- CMake -
pip install cmake
- aocd -
pip install advent-of-code-data
,pip install browser-cookie3
The following C++ dependencies are gathered with Conan (nothing for you to do)
- CTRE
- BS::thread_pool
- Eigen
- nlohmann json (not actually used)
Tested with Visual Studio 2022 v17.11.6 and v17.12.3 (both Pro and Community).
Perform first time setup for aocd: Log into Advent Of Code and run aocd-token
to retrieve your personal authentication token.
(Note, this doesn't seem to work properly with Chrome, try Firefox or follow the manual instructions.)
Each day, perform a conan install
to retrieve that day's input automatically.
conan install .
Open the folder in Visual Studio and build solution. Do not regenerate the CMake cache as this has broken my psuedo-solution in the past. Letting Visual Studio do the normal CMake stuff is fine.
...will not be fixed. Once a day has been solved the code will only receive, at best, cosmetic updates and maybe "easy" performance improvements.