Add solutions

This commit is contained in:
Laurens Miers 2024-09-25 15:26:17 +02:00
parent 7417f01d5d
commit b056b6ad81
96 changed files with 229 additions and 166 deletions

View file

@ -34,6 +34,7 @@ const Role = enum {
// it a u8 integer type.
const Character = struct {
role: Role,
health: u8,
gold: u32,
experience: u32,
};
@ -44,6 +45,7 @@ pub fn main() void {
.role = Role.wizard,
.gold = 20,
.experience = 10,
.health = 100,
};
// Glorp gains some gold.