Skip to content

πŸŽ„πŸ–€πŸ¦Ž Advent of Code 2023/2024 using zig

Notifications You must be signed in to change notification settings

guidoschmidt/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent Of Code πŸŽ„ zig solutions

  1. Install zig 0.13.0, 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.)