Solutions for Advent of Code 2023 in Swift.
Run from the CLI with swift run AOC2023 {day} {part}
.
where {day} specifies the number of the day (1...25)
and {part} whether part 1
or 2
should be run.
Additionally -t
can be added to run the the day using the example input.
When running in Xcode the arguments should be added to the scheme AOC2023
scheme.
You have to include your input inside ./Sources/AOC2023Core/Inputs
.
The input files need to be named input_{day}_{part}.txt
.
However usually, there's the same input for part 1 and part 2.