Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/andreiyard/advent_of_code_2015

My solutions to 2015 Advent of Code (https://adventofcode.com/2015) written in Zig
https://github.com/andreiyard/advent_of_code_2015

advent-of-code zig

Last synced: 1 day ago
JSON representation

My solutions to 2015 Advent of Code (https://adventofcode.com/2015) written in Zig

Awesome Lists containing this project

README

        

# Advent of Code 2015 in Zig

## Usage:
1. Use init_day.sh to init solution directory in `src/`
2. Put your task input to `src/dayXX/input.txt`
3. Write your code solutions in `src/dayXX/main.zig`
4. Build and run (see [Build and run](#build-and-run))

## Build and run:
- To build all days run ```zig build --summary all```
Arg `run` can be added, to also run all compiled solutions
- To build and run single day use ```zig build -Dday= run```

## TODO:

- ~~init_day.sh script to create default day dir layout~~
- ~~init_day.sh change all path to be relative to script, not cwd~~
- ~~build.zig that iterates over all day dirs, compiles and runs solutions~~
- ~~build option `-Dday=` to compile and run single day~~
- ~~day1 solution~~
- ~~what is the best way to read an input? (I choose @embedFile)~~
- build option `-Dexample=` that shows that we need to use example input with some number instead of main input
- build option `-Dseq` to run solutions sequentially (1,2,3...)