Learn how to solve CodeCrafters challenges in Zig
zig
installed. Our test runners use version 0.11
(as of November 2023).
The script for your challenge (like ./your_bittorrent.sh
) will automatically compile your code using zig build-exe
before executing it. It’ll
look something like this:
app
directory.app/main.zig
contains the main
function, which is what the test runner executes.app
directory. The test runner will include them when compiling your code.
For example, if you added a file at app/foo.zig
, you could use it like so:
app/foo/bar.zig
, you could use it like so:
@import
.