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
- Host: GitHub
- URL: https://github.com/guidoschmidt/advent-of-code
- Owner: guidoschmidt
- Created: 2023-12-08T08:50:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-02T22:58:02.000Z (5 months ago)
- Last Synced: 2025-02-22T11:57:27.712Z (5 months ago)
- Topics: advent-of-code, advent-of-code-2023, advent-of-code-2023-zig, advent-of-code-2024, advent-of-code-2024-zig, zig
- Language: Zig
- Homepage:
- Size: 375 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.)