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

https://github.com/guidoschmidt/advent-of-code

🎄🖤🦎 Advent of Code 2023/2024 using zig
https://github.com/guidoschmidt/advent-of-code

advent-of-code advent-of-code-2023 advent-of-code-2023-zig advent-of-code-2024 advent-of-code-2024-zig zig

Last synced: 4 months ago
JSON representation

🎄🖤🦎 Advent of Code 2023/2024 using zig

Awesome Lists containing this project

README

        

# Advent Of Code 🎄 [zig](https://ziglang.org/) solutions

1. Install [zig 0.13.0](https://ziglang.org/), preferably using [zvm](https://github.com/tristanisham/zvm)
2. Run `zig build run` to select a specific day
3. Run `zig build run -- DAY`, e.g. `zig build run -- 9` to run a specific day

### AOC_COOKIE
To obtain the puzzle inputs, you need to set the environment variable
`ACO_COOKIE` to the session cookie value from adventofcode.com:

fish shell:
```fish
set -Ux AOC_COOKIE session=XXX...
```

Powershell:
```pwsh
[System.Environment]::SetEnvironmentVariable("AOC_COOKIE", "session=XXX...")
```

### @TODO
- Use [terminal grahpics
protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/) via
[libvaxis](https://github.com/rockorager/libvaxis)
- Implement common re-usable data structures (e.g. 2D map, graph, etc.) and
algorithms (e.g. depth-first search, dijkstra/A* shortest-path like algorithms
etc.)