nuIIpointerexception/aoc_zig_templ
A easy to use template for building solutions for advent of code! 🎄✨
This is my template repository for the Advent of Code challenges in Zig. It includes a neat build system for fetching inputs, submitting solutions, and managing AoC code.
To fetch the input data for solutions, you need to provide a TOKEN
file in the root directory of the repository. This file should contain a single line with your advent of code cookie.
zig build <day> -Dyear=<year>
zig build 1
If no year is provided, the current year will be used. If no day is provided, the current day will be used.
zig build test:<day> -Dyear=<year
example for day 1 (automatic year detection):
zig build test:1
zig build submit:<day> -Dyear=<year
example:
zig build submit:1
zig build clean
NOTE: For your own safety you will have to add -Dconfirm=true to confirm this action!
Contributions are welcome! If you have a solution to an existing solution, feel free to submit a PR.
This project is licensed under the MIT License - see the LICENSE file for details