guessing-game
This commit is contained in:
23
guessing-game/HINTS.md
Normal file
23
guessing-game/HINTS.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# Hints
|
||||
|
||||
## General
|
||||
|
||||
- [This page][case-expressions] has a nice introduction to case expressions in Gleam.
|
||||
|
||||
## 1. Reply to a correct guess
|
||||
|
||||
- You can use a literal pattern to match on a specific number.
|
||||
|
||||
## 2. Reply to a close guess
|
||||
|
||||
- You can either use a literal pattern or a variable pattern and a guard.
|
||||
|
||||
## 3. Reply to too low guesses
|
||||
|
||||
- You can use a combination of a variable pattern and a guard.
|
||||
|
||||
## 4. Reply to too high guesses
|
||||
|
||||
- You can use a combination of a variable pattern and a guard, or a discard pattern.
|
||||
|
||||
[case-expressions]: https://gleam.run/book/tour/case-expressions.html
|
||||
Reference in New Issue
Block a user