nuIIpointerexception/aoc_zig
highly optimized aoc solutions written in zig! 🚀🎄
This is my repository for the Advent of Code challenges in Zig. Other than overengineered solutions and highly optimized trash, you will maybe find this also neat build system for fetching and submitting 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