Skip to content

Commit e3de42b

Browse files
committed
try making move tutorial use import
1 parent a977bdf commit e3de42b

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

data/scenarios/Tutorials/move.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -142,32 +142,29 @@ robots:
142142
#################
143143
- name: check
144144
system: true
145-
program: instant {run "scenarios/Tutorials/move_check.sw"}
145+
program: instant {import "scenarios/Tutorials/move_check.sw"; main}
146146
#################
147147
## WALLS ##
148148
#################
149149
- name: 1P wall
150150
system: true
151151
program: |
152-
def main = \a. pure noop end
153152
instant {
154-
run "scenarios/Tutorials/move_surveil.sw";
153+
import "scenarios/Tutorials/move_surveil.sw";
155154
main [entity="wall", room=1]
156155
}
157156
- name: 2P wall
158157
system: true
159158
program: |
160-
def main = \a. noop end
161159
instant {
162-
run "scenarios/Tutorials/move_surveil.sw";
160+
import "scenarios/Tutorials/move_surveil.sw";
163161
main [entity="wall", room=2]
164162
}
165163
- name: 3P wall
166164
system: true
167165
program: |
168-
def main = \a. noop end
169166
instant {
170-
run "scenarios/Tutorials/move_surveil.sw";
167+
import "scenarios/Tutorials/move_surveil.sw";
171168
main [entity="wall", room=3]
172169
}
173170
#################
@@ -176,25 +173,22 @@ robots:
176173
- name: 1P flower
177174
system: true
178175
program: |
179-
def main = \a. noop end
180176
instant {
181-
run "scenarios/Tutorials/move_surveil.sw";
177+
import "scenarios/Tutorials/move_surveil.sw";
182178
main [entity="flower", room=1]
183179
}
184180
- name: 2P flower
185181
system: true
186182
program: |
187-
def main = \a. noop end
188183
instant {
189-
run "scenarios/Tutorials/move_surveil.sw";
184+
import "scenarios/Tutorials/move_surveil.sw";
190185
main [entity="flower", room=2]
191186
}
192187
- name: 3P flower
193188
system: true
194189
program: |
195-
def main = \a. noop end
196190
instant {
197-
run "scenarios/Tutorials/move_surveil.sw";
191+
import "scenarios/Tutorials/move_surveil.sw";
198192
main [entity="flower", room=3]
199193
}
200194
entities:

data/scenarios/Tutorials/move_check.sw

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,3 @@ def main =
5555
room2;
5656
room3;
5757
end
58-
59-
main

0 commit comments

Comments
 (0)