Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andreiyard/advent_of_code_2015
- Owner: andreiyard
- Created: 2025-01-22T12:31:21.000Z (8 days ago)
- Default Branch: main
- Last Pushed: 2025-01-25T17:56:32.000Z (5 days ago)
- Last Synced: 2025-01-28T17:40:26.052Z (2 days ago)
- Topics: advent-of-code, zig
- Language: Zig
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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...)