forked from ChalmersGU-AI-course/shrdlite-course-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExampleWorlds.ts
134 lines (125 loc) · 6.05 KB
/
ExampleWorlds.ts
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
///<reference path="World.ts"/>
var ExampleWorlds : {[s:string]: WorldState} = {};
ExampleWorlds["complex"] = {
"stacks": [["e"],["a","l"],["i","h","j"],["c","k","g","b"],["d","m","f"]],
"holding": null,
"arm": 0,
"objects": {
"a": { "form":"brick", "size":"large", "color":"yellow" },
"b": { "form":"brick", "size":"small", "color":"white" },
"c": { "form":"plank", "size":"large", "color":"red" },
"d": { "form":"plank", "size":"small", "color":"green" },
"e": { "form":"ball", "size":"large", "color":"white" },
"f": { "form":"ball", "size":"small", "color":"black" },
"g": { "form":"table", "size":"large", "color":"blue" },
"h": { "form":"table", "size":"small", "color":"red" },
"i": { "form":"pyramid", "size":"large", "color":"yellow"},
"j": { "form":"pyramid", "size":"small", "color":"red" },
"k": { "form":"box", "size":"large", "color":"yellow"},
"l": { "form":"box", "size":"large", "color":"red" },
"m": { "form":"box", "size":"small", "color":"blue" }
},
"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"
]
};
ExampleWorlds["medium"] = {
"stacks": [["e"],["a","l"],[],[],["i","h","j"],[],[],["k","g","c","b"],[],["d","m","f"]],
"holding": null,
"arm": 0,
"objects": {
"a": { "form":"brick", "size":"large", "color":"green" },
"b": { "form":"brick", "size":"small", "color":"white" },
"c": { "form":"plank", "size":"large", "color":"red" },
"d": { "form":"plank", "size":"small", "color":"green" },
"e": { "form":"ball", "size":"large", "color":"white" },
"f": { "form":"ball", "size":"small", "color":"black" },
"g": { "form":"table", "size":"large", "color":"blue" },
"h": { "form":"table", "size":"small", "color":"red" },
"i": { "form":"pyramid", "size":"large", "color":"yellow"},
"j": { "form":"pyramid", "size":"small", "color":"red" },
"k": { "form":"box", "size":"large", "color":"yellow"},
"l": { "form":"box", "size":"large", "color":"red" },
"m": { "form":"box", "size":"small", "color":"blue" }
},
"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"
]
};
ExampleWorlds["small"] = {
"stacks": [["e"],["g","l"],[],["k","m","f"],[]],
"holding": "a",
"arm": 0,
"objects": {
"a": { "form":"brick", "size":"large", "color":"green" },
"b": { "form":"brick", "size":"small", "color":"white" },
"c": { "form":"plank", "size":"large", "color":"red" },
"d": { "form":"plank", "size":"small", "color":"green" },
"e": { "form":"ball", "size":"large", "color":"white" },
"f": { "form":"ball", "size":"small", "color":"black" },
"g": { "form":"table", "size":"large", "color":"blue" },
"h": { "form":"table", "size":"small", "color":"red" },
"i": { "form":"pyramid", "size":"large", "color":"yellow"},
"j": { "form":"pyramid", "size":"small", "color":"red" },
"k": { "form":"box", "size":"large", "color":"yellow"},
"l": { "form":"box", "size":"large", "color":"red" },
"m": { "form":"box", "size":"small", "color":"blue" }
},
"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"
]
};
ExampleWorlds["impossible"] = {
"stacks": [["lbrick1","lball1","sbrick1"], [],
["lpyr1","lbox1","lplank2","sball2"], [],
["sbrick2","sbox1","spyr1","ltable1","sball1"]],
"holding": null,
"arm": 0,
"objects": {
"lbrick1": { "form":"brick", "size":"large", "color":"green" },
"sbrick1": { "form":"brick", "size":"small", "color":"yellow" },
"sbrick2": { "form":"brick", "size":"small", "color":"blue" },
"lplank1": { "form":"plank", "size":"large", "color":"red" },
"lplank2": { "form":"plank", "size":"large", "color":"black" },
"splank1": { "form":"plank", "size":"small", "color":"green" },
"lball1": { "form":"ball", "size":"large", "color":"white" },
"sball1": { "form":"ball", "size":"small", "color":"black" },
"sball2": { "form":"ball", "size":"small", "color":"red" },
"ltable1": { "form":"table", "size":"large", "color":"green" },
"stable1": { "form":"table", "size":"small", "color":"red" },
"lpyr1": { "form":"pyramid", "size":"large", "color":"white"},
"spyr1": { "form":"pyramid", "size":"small", "color":"blue" },
"lbox1": { "form":"box", "size":"large", "color":"yellow"},
"sbox1": { "form":"box", "size":"small", "color":"red" },
"sbox2": { "form":"box", "size":"small", "color":"blue" }
},
"examples": [
"this is just an impossible world"
]
};