This commit is contained in:
2026-06-05 23:51:45 +02:00
parent 629634e09d
commit a5bbd016eb
7 changed files with 16 additions and 7 deletions
+7
View File
@@ -43,6 +43,13 @@ pub fn main() void {
// Feel free to run this program without adding Zump. What does
// it do and why?
chars[1] = Character{
.role = Role.bard,
.gold = 10,
.health = 100,
.experience = 20,
};
// Printing all RPG characters in a loop:
for (chars, 0..) |c, num| {
std.debug.print("Character {} - G:{} H:{} XP:{}\n", .{