role-playing-game

This commit is contained in:
Alexander Heldt
2025-11-02 21:22:44 +01:00
parent 5fb5492306
commit 1de1e2fcb6
10 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Hints
## 1. Introduce yourself
- The [`option.unwrap` function][unwrap] can be used to get the value from an option, or a default value if there is no value.
## 2. Implement the revive mechanic
- Option values can be created using the `Some` and `None` constructors from the `gleam/option` module.
## 3. Implement the spell casting mechanic
- The [`int.max` function][max] can be used to make sure the health does not go below 0.
[max]: https://hexdocs.pm/gleam_stdlib/gleam/int.html#max