From e2f3a5e5192ba9e28d51c39c258a37003cc9acb0 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Tue, 2 May 2023 08:26:32 -0400 Subject: 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). --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 38890c2..1b4855d 100644 --- a/build.zig +++ b/build.zig @@ -1076,6 +1076,10 @@ const exercises = [_]Exercise{ .main_file = "100_for4.zig", .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.", -- cgit v1.2.3