high-score-board
This commit is contained in:
29
high-score-board/HINTS.md
Normal file
29
high-score-board/HINTS.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Hints
|
||||
|
||||
## 1. Create a new high score board
|
||||
|
||||
- The [`dict.new`][new] and [`dict.from_list`][from_list] functions can be used to create a new dict.
|
||||
|
||||
## 2. Add players to a score board
|
||||
|
||||
- The [`dict.insert`][insert] function can be used to add a new key-value pair to a dict.
|
||||
|
||||
## 3. Remove players from a score board
|
||||
|
||||
- The [`dict.delete`][delete] function can be used to remove a key-value pair from a dict.
|
||||
|
||||
## 4. Increase a player's score
|
||||
|
||||
- The [`dict.get`][get] function can be used to get the value for a key in a dict.
|
||||
- The [`dict.insert`][insert] function can be used to overwrite an existing key-value pair in a dict.
|
||||
|
||||
## 5. Apply Monday bonus points
|
||||
|
||||
- The [`dict.map_values`][map_values] function can be used to modify all the values in a dict.
|
||||
|
||||
[new]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#new
|
||||
[get]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#get
|
||||
[insert]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#insert
|
||||
[delete]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#delete
|
||||
[from_list]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#from_list
|
||||
[map_values]: https://hexdocs.pm/gleam_stdlib/gleam/dict.html#map_values
|
||||
Reference in New Issue
Block a user