mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-26 17:38:34 +03:00
mention external editors in def
Tutorial challenge
This commit is contained in:
parent
af6cb9b8d1
commit
871e68b38f
@ -22,7 +22,15 @@ objectives:
|
||||
its contents and coordinates are shown in the lower left.
|
||||
- |
|
||||
TIP: the type annotation in a definition is optional. You could also write
|
||||
`def m4 = move; move; move; move end`, and Swarm would infer the type of `m4`.
|
||||
`def m4 = move; move; move; move end`, and Swarm would infer
|
||||
the type of `m4`.
|
||||
- |
|
||||
TIP: writing function definitions at the prompt is annoying.
|
||||
You can also put definitions in a `.sw` file and load it
|
||||
with the `run` command. Check out
|
||||
https://github.com/swarm-game/swarm/tree/main/editors
|
||||
for help setting up an external editor with things like
|
||||
syntax and error highlighting.
|
||||
condition: |
|
||||
try {
|
||||
as base {has "flower"}
|
||||
|
Loading…
Reference in New Issue
Block a user