aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2023-05-02 08:26:32 -0400
committerDave Gauer <dave@ratfactor.com>2023-05-02 08:26:32 -0400
commite2f3a5e5192ba9e28d51c39c258a37003cc9acb0 (patch)
treeb96abd516eff99f5d2c61e05a69ced80b346c082 /build.zig
parentf9aec283c80acb969bb7e2cf4662ef7ad252b831 (diff)
Added Ex 101 "for loops part 5" (Closes #271)
Also gave a shot at explaining data-oriented design, a Zig "hot topic" ever since the red Hawaiian shirt talk(s).
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 38890c2..1b4855d 100644
--- a/build.zig
+++ b/build.zig
@@ -1077,6 +1077,10 @@ const exercises = [_]Exercise{
.output = "Arrays match!",
},
.{
+ .main_file = "101_for5.zig",
+ .output = "1. Wizard (Gold: 25, XP: 40)\n2. Bard (Gold: 11, XP: 17)\n3. Bard (Gold: 5, XP: 55)\n4. Warrior (Gold: 7392, XP: 21)",
+ },
+ .{
.main_file = "999_the_end.zig",
.output = "\nThis is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.",
},