Skip to content

Solutions to AoC '23 done in Zig, utilizing Zig build system to grab puzzle inputs and generate code scaffolds

License

Notifications You must be signed in to change notification settings

Nickrrau/AoC23_Zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023 - Zig

Simple solutions to AoC'23 problems, mostly another excuse to write some ugly Zig code. This includes a rather over-complicated way of generating code scaffolding and downloading each days input.

Once the day unlocks you can simply run zig build new -Dday=<x> and it will collect the day's input and produce a basic zig file that embeds the file, and an optional sample file for each part. This also spits out a template zig file pre-filled out with minimal process functions which are all called by a shared main.

Once ready you can then run zig build day_<x> which will build a dedicated executable for that day. This is done by creating a private module locally using each day's main zig file which has the required methods.

Day Part 1 Part 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

About

Solutions to AoC '23 done in Zig, utilizing Zig build system to grab puzzle inputs and generate code scaffolds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages