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).
This commit is contained in:
Dave Gauer 2023-05-02 08:26:32 -04:00
parent 7fcf909c77
commit 3fc68332d8
3 changed files with 128 additions and 0 deletions

View file

@ -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.",