Odin project with AoC 2025 solutions.
Developed with odin version dev-2025-11:e5153a937.
Use the official tools to build/run/fmt, or have a look at the Makefile:
odin build .odin run .odinfmt -w .
The executable can run the examples, or a single day as well:
Usage:
aoc-2025 [-day] [-example]
Flags:
-day:<int>, multiple | Run the given day. Can be given multiple times
-example | Run the example instead of the input
The file main.odin implements a small entry point which handles
argument parsing and invokes the solver for the respective day(s). It
requires the inputs directory to be populated with input files for
each day, like inputs/day01.txt and inputs/example_day03.txt. See
the lib/util.odin file for all input file names.
For each day, one file is present in the lib package. Each day
implements a run function. run expects the input of the problem
as a string and returns the two computed results. For memory
management, the run function receives an allocator which can be used
to allocate memory. All memory will be deallocated after the result
is computed.
If there is no input for the problem of a certain day, the empty string is used for its input, and no solution will be computed.
Copyright (c) 2025 Christoph Göttschkes
Licensed under the MIT License.
See the LICENSE file for more info.