This repo holds my answers to the Advent Of Code 2023 challenges.
This AOC was made in both C++ and Rust. The goal for me was to practice both languages.
Each challenge is contained in its own folder. The first challenge is in challenge-1, and so on...
To execute the code of a challenge, use the Makefile:
make challenge target=$X
# replace $X with the number of the challenge to execute.
In case there are several C++ files within the selected challenge folder, each with a main
function, then choose the one to compile:
make challenge target=$X src=$Y
# replace $Y with the name of the C++ file,
# which is by default "main.cpp"
You can also:
make execute
# to execute the file named "executable" in "./build"
make clear
# deletes the executable in `./build`
All of these challenges are done in C++ 20. You must have g++ installed to run these challenges.
Each challenge is contained in its own module in the src folder.
To execute a particular challenge, use cargo run
(and make sure main.rs is set to the correct module).