tresure-chest
This commit is contained in:
13
treasure-chest/HINTS.md
Normal file
13
treasure-chest/HINTS.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Hints
|
||||
|
||||
## 1. Define the TreasureChest generic custom type
|
||||
|
||||
- The `TreasureChest` custom type only has a single variant.
|
||||
|
||||
## 2. Define the UnlockResult generic custom type
|
||||
|
||||
- The `UnlockResult` custom type has 2 variants, `Unlocked`, and `WrongPassword`.
|
||||
|
||||
## 3. Define the get_treasure function
|
||||
|
||||
- Custom types can be pattern matched on in the same way to access their values.
|
||||
Reference in New Issue
Block a user