role-playing-game
This commit is contained in:
15
role-playing-game/HINTS.md
Normal file
15
role-playing-game/HINTS.md
Normal 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
|
||||
Reference in New Issue
Block a user