Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuiipointerexception/aoc_zig_templ
A easy to use template for building solutions for advent of code! 🎄✨
https://github.com/nuiipointerexception/aoc_zig_templ
advent-of-code aoc zig ziglang
Last synced: about 1 month ago
JSON representation
A easy to use template for building solutions for advent of code! 🎄✨
- Host: GitHub
- URL: https://github.com/nuiipointerexception/aoc_zig_templ
- Owner: nuIIpointerexception
- License: mit
- Created: 2024-12-08T07:00:57.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-08T07:06:04.000Z (about 1 month ago)
- Last Synced: 2024-12-08T08:17:43.323Z (about 1 month ago)
- Topics: advent-of-code, aoc, zig, ziglang
- Language: Zig
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aoc_zig
This is my template repository for the [Advent of Code](https://adventofcode.com/) challenges in [Zig](https://ziglang.org/).
It includes a neat build system for fetching inputs, submitting solutions, and managing AoC code.## Features
- Automatic input data fetching
- Submit your result with a command!
- Tests and benchmarking!
- Supports every year and every day!## Usage
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](https://adventofcode.com/) cookie.
### Build & Run:
```bash
zig build -Dyear=
```
```bash
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.
### Test:
```bash
zig build test: -Dyear= -Dyear=