diff --git a/.gitignore b/.gitignore index 54a2a01..04a0521 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ 2022/day05/obj 2023/day01/bin/Debug/net7.0 2023/day01/obj +zig-cache +zig-out \ No newline at end of file diff --git a/2023/day02/build.zig b/2023/day02/build.zig new file mode 100644 index 0000000..01f5701 --- /dev/null +++ b/2023/day02/build.zig @@ -0,0 +1,9 @@ +const std = @import("std"); + +pub fn build(b: *std.Build) void { + const exe = b.addExecutable(.{ + .name = "main", + .root_source_file = .{ .path = "main.zig" }, + }); + b.installArtifact(exe); +} diff --git a/2023/day02/main.zig b/2023/day02/main.zig new file mode 100644 index 0000000..4a08d56 --- /dev/null +++ b/2023/day02/main.zig @@ -0,0 +1,5 @@ +const std = @import("std"); + +pub fn main() !void { + std.debug.print("Hello World!", .{}); +}