Advent Of Code π zig solutions
- Install zig 0.13.0, preferably using zvm
- Run
zig build run
to select a specific day - Run
zig build run -- DAY
, e.g.zig build run -- 9
to run a specific day
To obtain the puzzle inputs, you need to set the environment variable
ACO_COOKIE
to the session cookie value from adventofcode.com:
fish shell:
set -Ux AOC_COOKIE session=XXX...
Powershell:
[System.Environment]::SetEnvironmentVariable("AOC_COOKIE", "session=XXX...")
- Use terminal grahpics protocol via 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.)