Escalating multi-paragraph hints (wave 3, F2)
info.sexp :hint now accepts a string or a list of paragraph strings; normalize-hint converts entries at load and fails fast on malformed ones (lisplings: Bad :hint for <name> ...). In watch mode h reveals one paragraph per press and revealed hints stay pinned on the screen, resetting when the exercise changes; hint [name] prints every paragraph numbered. intro1, functions3 and quiz1 are converted to paragraph lists as examples; every other entry keeps working as a plain string.
This commit is contained in:
1 parent
516b256ea3
commit
04e313a915
3 files changed
+40
-20
No files matched your search
@@ -62,7 +62,7 @@ Keys in watch mode (each key is a line: type it, then press ENTER):
|
||||
| key | action |
|
||||
| --- | ------------------------------------ |
|
||||
| n | move to the next pending exercise |
|
||||
| h | show the hint, pinned on the screen |
|
||||
| h | reveal the next hint paragraph (stays pinned) |
|
||||
| r | rerun the current exercise |
|
||||
| l | list all exercises |
|
||||
| q | save progress and quit |
|
||||
@@ -78,7 +78,7 @@ solved.
|
||||
```sh
|
||||
./lisplings watch the current exercise (the default)
|
||||
./lisplings run [name] run one exercise and print its output
|
||||
./lisplings hint [name] show the hint for an exercise
|
||||
./lisplings hint [name] print every hint paragraph, numbered
|
||||
./lisplings list [pending|done|all]
|
||||
./lisplings reset <name> restore an exercise to its pristine state
|
||||
./lisplings check-all run every exercise and resync progress
|
||||
|
||||
Reference in new issue
Block a user