You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Various minor tutorial improvements
- Move conditional tutorial after `world101` (world101 does not require conditionals)
- Add new loops tutorial after conditionals and before `farming`, which prompts you to implement a while loop using recursion.
Copy file name to clipboardExpand all lines: data/scenarios/Tutorials/farming.yaml
+6-11Lines changed: 6 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,21 +11,16 @@ objectives:
11
11
are somewhat rare in the wild. Therefore, it makes sense to farm
12
12
them in order to create a reliable supply.
13
13
- |
14
-
In this scenario, you are a bit farther along: in particular,
14
+
In this example scenario, you are a bit farther along: in particular,
15
15
you now have a few `harvester`{=entity}s, a few `lambda`{=entity}s, a few `logger`{=entity}s,
16
16
some `branch predictor`{=entity}s which
17
17
allow robots to evaluate conditional expressions, and some
18
-
`strange loop`{=entity}s which enable recursive functions. For example,
19
-
one simple, useful recursive function is
18
+
`strange loop`{=entity}s which enable recursive functions.
20
19
- |
21
-
```
22
-
def forever = \c. c ; forever c end
23
-
```
24
-
- |
25
-
Your goal is to acquire 256 `lambda`{=entity}s. Of course, in order to
26
-
accomplish this in a reasonable amount of time, it makes sense to plant
20
+
Your goal is to acquire 256 `lambda`{=entity}s. Of course,
21
+
now that you know how to write conditionals and loops, it makes sense to plant
27
22
a field of `lambda`{=entity}s and then program one or more robots to
28
-
harvest them in an automated way.
23
+
harvest them in an automated way!
29
24
- |
30
25
**TIP:** the `ishere` command can be used to test for the presence of a
31
26
(fully-grown) `lambda`{=entity}, and the `has` command can be used to test whether
@@ -41,7 +36,7 @@ objectives:
41
36
- Congratulations! You have completed the most difficult simulated exercise and are ready to begin exploring the new planet in earnest. Of course there is much more remaining to explore in the world, and many additional programming language features to unlock.
42
37
- |
43
38
To finally complete this tutorial, there is only one thing left for you to do:
44
-
use one of your lambdas to make some delicious `curry`{=entity}.
39
+
use your `lambda`{=entity}s to make some delicious `curry`{=entity}.
45
40
- Afterwards, you will return to the menu where you can select "Classic game" for the complete game experience. Or, play a "Creative game" if you just want to play around with programming robots, without any constraints or need to collect resources. You could also choose to redo some tutorial scenarios, or explore the other challenge scenarios listed in the menu.
0 commit comments