-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExampleWorlds.js
292 lines (291 loc) · 14.3 KB
/
ExampleWorlds.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports", "./Types"], factory);
}
})(function (require, exports) {
"use strict";
exports.__esModule = true;
var Types_1 = require("./Types");
/********************************************************************************
** ExampleWorlds
Here you define the worlds that you can interact with.
Feel free to add new worlds at will.
********************************************************************************/
exports.ExampleWorlds = {};
exports.ExampleWorlds["small"] = {
"stacks": [[["LargeWhiteBall"],
["LargeBlueTable", "LargeRedBox"],
[],
["LargeYellowBox", "SmallBlueBox", "SmallBlackBall"],
[]]],
"holding": null,
"arm": [0, 0],
"objects": {
"LargeWhiteBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmallBlackBall": new Types_1.SimpleObject("small", "black", "ball"),
"LargeBlueTable": new Types_1.SimpleObject("large", "blue", "table"),
"LargeYellowBox": new Types_1.SimpleObject("large", "yellow", "box"),
"LargeRedBox": new Types_1.SimpleObject("large", "red", "box"),
"SmallBlueBox": new Types_1.SimpleObject("small", "blue", "box"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put the white ball in a box on the floor",
"put the black ball in a box on the floor",
"take a blue object",
"take the white ball",
"put all boxes on the floor",
"move all balls inside a large box"
]
};
exports.ExampleWorlds["medium"] = {
"stacks": [[["LrgWhtBall"],
["LrgGrnBrck2", "LrgRedBox"],
[],
[],
["LrgYlwPrmd", "SmlRedTble", "SmlRedPrmd"],
[],
[],
["LrgYlwBox", "LrgBluTble", "LrgRedPlnk", "LrgGrnBrck3", "SmlWhtBrck"],
[],
["SmlGrnPlnk", "SmlBluBox", "SmlBlkBall"]]],
"holding": "LrgGrnBrck1",
"arm": [0, 0],
"objects": {
"LrgGrnBrck1": new Types_1.SimpleObject("large", "green", "brick"),
"LrgGrnBrck2": new Types_1.SimpleObject("large", "green", "brick"),
"LrgGrnBrck3": new Types_1.SimpleObject("large", "green", "brick"),
"SmlWhtBrck": new Types_1.SimpleObject("small", "white", "brick"),
"LrgRedPlnk": new Types_1.SimpleObject("large", "red", "plank"),
"SmlGrnPlnk": new Types_1.SimpleObject("small", "green", "plank"),
"LrgWhtBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmlBlkBall": new Types_1.SimpleObject("small", "black", "ball"),
"LrgBluTble": new Types_1.SimpleObject("large", "blue", "table"),
"SmlRedTble": new Types_1.SimpleObject("small", "red", "table"),
"LrgYlwPrmd": new Types_1.SimpleObject("large", "yellow", "pyramid"),
"SmlRedPrmd": new Types_1.SimpleObject("small", "red", "pyramid"),
"LrgYlwBox": new Types_1.SimpleObject("large", "yellow", "box"),
"LrgRedBox": new Types_1.SimpleObject("large", "red", "box"),
"SmlBluBox": new Types_1.SimpleObject("small", "blue", "box"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put the brick that is to the left of a pyramid in a box",
"put the white ball in a box on the floor",
"move the large ball inside a yellow box on the floor",
"move the large ball inside a red box on the floor",
"take a red object",
"take the white ball",
"put all boxes on the floor",
"put the large plank under the blue brick",
"move all bricks on a table",
"move all balls inside a large box"
]
};
exports.ExampleWorlds["complex"] = {
"stacks": [[["LargeWhiteBall"],
["LargeYellowBrick", "LargeRedBox"],
["LargeYellowPyramid", "SmallRedTable", "SmallRedPyramid"],
["LargeRedPlank", "LargeYellowBox", "LargeBlueTable", "SmallWhiteBrick"],
["SmallGreenPlank", "SmallBlueBox", "SmallBlackBall"]]],
"holding": null,
"arm": [0, 0],
"objects": {
"LargeYellowBrick": new Types_1.SimpleObject("large", "yellow", "brick"),
"SmallWhiteBrick": new Types_1.SimpleObject("small", "white", "brick"),
"LargeRedPlank": new Types_1.SimpleObject("large", "red", "plank"),
"SmallGreenPlank": new Types_1.SimpleObject("small", "green", "plank"),
"LargeWhiteBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmallBlackBall": new Types_1.SimpleObject("small", "black", "ball"),
"LargeBlueTable": new Types_1.SimpleObject("large", "blue", "table"),
"SmallRedTable": new Types_1.SimpleObject("small", "red", "table"),
"LargeYellowPyramid": new Types_1.SimpleObject("large", "yellow", "pyramid"),
"SmallRedPyramid": new Types_1.SimpleObject("small", "red", "pyramid"),
"LargeYellowBox": new Types_1.SimpleObject("large", "yellow", "box"),
"LargeRedBox": new Types_1.SimpleObject("large", "red", "box"),
"SmallBlueBox": new Types_1.SimpleObject("small", "blue", "box"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put a box in a box",
"put all balls on the floor",
"take the yellow box",
"put any object under all tables",
"put any object under all tables on the floor",
"put a ball in a small box in a large box",
"put all balls in a large box",
"put all balls left of a ball",
"put all balls beside a ball",
"put all balls beside every ball",
"put a box beside all objects",
"put all red objects above a yellow object on the floor",
"put all yellow objects under a red object under an object"
]
};
exports.ExampleWorlds["impossible-2d"] = {
"stacks": [[["LrgGrnBrck", "LrgWhtBall", "SmlYlwBrck"],
[],
["LrgWhtPrmd", "LrgYlwBox", "LrgBlkPlnk", "SmlRedBall"],
[],
["SmlBluBrck", "SmlRedBox", "SmlBluPrmd", "LrgGrnTble", "SmlBlkBall"]]],
"holding": null,
"arm": [0, 0],
"objects": {
"LrgGrnBrck": new Types_1.SimpleObject("large", "green", "brick"),
"SmlYlwBrck": new Types_1.SimpleObject("small", "yellow", "brick"),
"SmlBluBrck": new Types_1.SimpleObject("small", "blue", "brick"),
"LrgRedPlnk": new Types_1.SimpleObject("large", "red", "plank"),
"LrgBlkPlnk": new Types_1.SimpleObject("large", "black", "plank"),
"SmlGrnPlnk": new Types_1.SimpleObject("small", "green", "plank"),
"LrgWhtBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmlBlkBall": new Types_1.SimpleObject("small", "black", "ball"),
"SmlRedBall": new Types_1.SimpleObject("small", "red", "ball"),
"LrgGrnTble": new Types_1.SimpleObject("large", "green", "table"),
"SmlRedTble": new Types_1.SimpleObject("small", "red", "table"),
"LrgWhtPrmd": new Types_1.SimpleObject("large", "white", "pyramid"),
"SmlBluPrmd": new Types_1.SimpleObject("small", "blue", "pyramid"),
"LrgYlwBox": new Types_1.SimpleObject("large", "yellow", "box"),
"SmlRedBox": new Types_1.SimpleObject("small", "red", "box"),
"SmlBluBox": new Types_1.SimpleObject("small", "blue", "box"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"this is just an impossible world"
]
};
exports.ExampleWorlds["cups"] = {
"stacks": [[["LargeWhiteBall"],
["LargeBlueTable", "LargeGreenPyramid"],
["LargeWhiteCup", "LargeBlueCup", "LargeRedCup"],
["LargeYellowBox", "SmallBlueBox", "SmallBlackBall"],
["SmallWhiteCup"]]],
"holding": null,
"arm": [0, 0],
"objects": {
"LargeWhiteBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmallBlackBall": new Types_1.SimpleObject("small", "black", "ball"),
"LargeBlueTable": new Types_1.SimpleObject("large", "blue", "table"),
"LargeYellowBox": new Types_1.SimpleObject("large", "yellow", "box"),
"SmallBlueBox": new Types_1.SimpleObject("small", "blue", "box"),
"LargeWhiteCup": new Types_1.SimpleObject("large", "white", "cup"),
"LargeBlueCup": new Types_1.SimpleObject("large", "blue", "cup"),
"LargeRedCup": new Types_1.SimpleObject("large", "red", "cup"),
"SmallWhiteCup": new Types_1.SimpleObject("small", "white", "cup"),
"LargeGreenPyramid": new Types_1.SimpleObject("large", "green", "pyramid"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put the white ball in a box on the floor",
"put the black ball in a box on the floor",
"take a blue object",
"take the white ball",
"put all boxes on the floor",
"move all balls inside a large box",
"put a cup in a cup"
]
};
exports.ExampleWorlds["small-3d"] = {
"stacks": [
[
["SmallYellowTable"],
["LargeBlueBox", "SmallWhiteCup"],
[]
], [
["LargeGreenBrick", "SmallRedCup"],
["LargeBlueCup", "LargeRedCup"],
[],
], [
["SmallWhitePlank", "SmallYellowPyramid"],
[],
["LargeBlackBall"],
]
],
"holding": null,
"arm": [0, 0],
"objects": {
"LargeBlackBall": new Types_1.SimpleObject("large", "black", "ball"),
"LargeBlueBox": new Types_1.SimpleObject("large", "blue", "box"),
"LargeGreenBrick": new Types_1.SimpleObject("large", "green", "brick"),
"LargeBlueCup": new Types_1.SimpleObject("large", "blue", "cup"),
"LargeRedCup": new Types_1.SimpleObject("large", "red", "cup"),
"SmallRedCup": new Types_1.SimpleObject("small", "red", "cup"),
"SmallWhiteCup": new Types_1.SimpleObject("small", "white", "cup"),
"SmallWhitePlank": new Types_1.SimpleObject("small", "white", "plank"),
"SmallYellowPyramid": new Types_1.SimpleObject("small", "yellow", "pyramid"),
"SmallYellowTable": new Types_1.SimpleObject("small", "yellow", "table"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put the large ball above a green object",
"put all yellow things beside a box",
"put a table behind all cups"
]
};
exports.ExampleWorlds["medium-3d"] = {
"stacks": [
[
["LrgWhtBall"],
["LrgGrnBrck2", "LrgRedBox"],
[],
["LrgYlwBox", "LrgBluTble"],
[]
], [
[],
["LrgYlwPrmd", "SmlRedTble", "SmlRedPrmd"],
[],
["LrgBluBall"],
[]
], [
[],
["LrgRedPlnk"],
[],
[],
[]
], [
["SmlGrnPlnk", "SmlBluBox", "SmlBlkBall"],
["LrgGrnBrck3", "SmlWhtBrck"],
["SmlBlkBox"],
[],
[]
],
],
"holding": "LrgGrnBrck1",
"arm": [0, 0],
"objects": {
"LrgGrnBrck1": new Types_1.SimpleObject("large", "green", "brick"),
"LrgGrnBrck2": new Types_1.SimpleObject("large", "green", "brick"),
"LrgGrnBrck3": new Types_1.SimpleObject("large", "green", "brick"),
"SmlWhtBrck": new Types_1.SimpleObject("small", "white", "brick"),
"LrgRedPlnk": new Types_1.SimpleObject("large", "red", "plank"),
"SmlGrnPlnk": new Types_1.SimpleObject("small", "green", "plank"),
"LrgWhtBall": new Types_1.SimpleObject("large", "white", "ball"),
"SmlBlkBall": new Types_1.SimpleObject("small", "black", "ball"),
"LrgBluTble": new Types_1.SimpleObject("large", "blue", "table"),
"SmlRedTble": new Types_1.SimpleObject("small", "red", "table"),
"LrgYlwPrmd": new Types_1.SimpleObject("large", "yellow", "pyramid"),
"SmlRedPrmd": new Types_1.SimpleObject("small", "red", "pyramid"),
"LrgYlwBox": new Types_1.SimpleObject("large", "yellow", "box"),
"LrgRedBox": new Types_1.SimpleObject("large", "red", "box"),
"SmlBluBox": new Types_1.SimpleObject("small", "blue", "box"),
"LrgBluBall": new Types_1.SimpleObject("large", "blue", "ball"),
"SmlBlkBox": new Types_1.SimpleObject("small", "black", "box"),
"floor": new Types_1.SimpleObject(null, null, "floor")
},
"examples": [
"put the white ball in a box on the floor",
"move a large ball inside a yellow box on the floor",
"take a red object",
"take the white ball",
"put all boxes on the floor",
"put the large plank under a green brick",
"move all bricks on a table",
"move all balls inside a large box",
"put the box behind a box on a table",
"move all planks in front of a blue table"
]
};
});