Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 954 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 954 Bytes

Advent Of Code 🎄 zig solutions

  1. Install zig (.zigversion), preferably using 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:

set -Ux AOC_COOKIE session=XXX...

Powershell:

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

@TODO

  • 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.)