Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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! 🎄✨

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=