@altnovatrail/widgets 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cores/vector.schema.json +22 -1
- package/kinds/cards/cards.handles.json +109 -0
- package/kinds/cards/cards.schema.json +483 -0
- package/kinds/cards/vectors/any.json +255 -0
- package/kinds/cards/vectors/box.json +325 -0
- package/kinds/cards/vectors/fork-taps.json +305 -0
- package/kinds/cards/vectors/fork.json +254 -0
- package/kinds/cards/vectors/invalid-goal.json +70 -0
- package/kinds/cards/vectors/invalid-ids.json +113 -0
- package/kinds/cards/vectors/invalid-schema.json +88 -0
- package/kinds/cards/vectors/invalid-taps.json +214 -0
- package/kinds/cards/vectors/key.json +264 -0
- package/kinds/cards/vectors/limit.json +274 -0
- package/kinds/cards/vectors/no-goal.json +205 -0
- package/kinds/cards/vectors/none.json +239 -0
- package/kinds/cards/vectors/recog.json +113 -0
- package/kinds/cards/vectors/riddle.json +397 -0
- package/kinds/cards/vectors/solo.json +218 -0
- package/kinds/cells/cells.schema.json +17 -2
- package/kinds/line/line.handles.json +195 -0
- package/kinds/line/line.schema.json +336 -0
- package/kinds/line/vectors/cases.json +213 -0
- package/kinds/line/vectors/gaps-12-d1-1.json +140 -0
- package/kinds/line/vectors/gaps-12-d1-2.json +95 -0
- package/kinds/line/vectors/gaps-12-d1-3.json +122 -0
- package/kinds/line/vectors/gaps-12-d1-4.json +121 -0
- package/kinds/line/vectors/gaps-12-d1-5.json +87 -0
- package/kinds/line/vectors/gaps-12-d2-1.json +173 -0
- package/kinds/line/vectors/gaps-12-d2-6.json +87 -0
- package/kinds/line/vectors/gaps-12-d3-2.json +173 -0
- package/kinds/line/vectors/gaps-12-d4-4.json +168 -0
- package/kinds/line/vectors/gaps-12-d5-3.json +99 -0
- package/kinds/line/vectors/gaps-12-d5-4.json +215 -0
- package/kinds/line/vectors/gaps-34-d1-1.json +37 -0
- package/kinds/line/vectors/gaps-34-d1-2.json +130 -0
- package/kinds/line/vectors/gaps-34-d1-4.json +155 -0
- package/kinds/line/vectors/gaps-34-d1-5.json +43 -0
- package/kinds/line/vectors/gaps-34-d3-2.json +38 -0
- package/kinds/line/vectors/gaps-34-d3-5.json +177 -0
- package/kinds/line/vectors/gaps-34-d5-3.json +39 -0
- package/kinds/line/vectors/invalid-line.json +34 -0
- package/kinds/line/vectors/invalid-ring.json +34 -0
- package/kinds/line/vectors/invalid.json +43 -0
- package/kinds/line/vectors/jump-unreachable.json +104 -0
- package/kinds/line/vectors/limit.json +40 -0
- package/kinds/line/vectors/op-not-in-scene.json +47 -0
- package/kinds/line/vectors/ring-cut.json +104 -0
- package/kinds/line/vectors/ring-every.json +107 -0
- package/kinds/line/vectors/ring-jump.json +135 -0
- package/lib/cores/arith.d.ts +62 -0
- package/lib/cores/arith.js +197 -0
- package/lib/cores/kind.d.ts +31 -3
- package/lib/cores/registry.d.ts +43 -0
- package/lib/cores/registry.js +87 -0
- package/lib/cores/search.d.ts +22 -6
- package/lib/cores/search.js +70 -14
- package/lib/kinds/cards/goal.d.ts +25 -0
- package/lib/kinds/cards/goal.js +72 -0
- package/lib/kinds/cards/index.d.ts +14 -0
- package/lib/kinds/cards/index.js +17 -0
- package/lib/kinds/cards/kind.d.ts +23 -0
- package/lib/kinds/cards/kind.js +101 -0
- package/lib/kinds/cards/parts.d.ts +36 -0
- package/lib/kinds/cards/parts.js +34 -0
- package/lib/kinds/cards/scene.d.ts +102 -0
- package/lib/kinds/cards/scene.js +356 -0
- package/lib/kinds/cards/schema.d.ts +10 -0
- package/lib/kinds/cards/schema.js +285 -0
- package/lib/kinds/cells/kind.js +11 -64
- package/lib/kinds/cells/operation.d.ts +6 -0
- package/lib/kinds/cells/polyomino.d.ts +14 -0
- package/lib/kinds/cells/polyomino.js +100 -24
- package/lib/kinds/cells/registry.js +1 -1
- package/lib/kinds/cells/schema.js +3 -1
- package/lib/kinds/line/cut.d.ts +2 -0
- package/lib/kinds/line/cut.js +63 -0
- package/lib/kinds/line/goals.d.ts +22 -0
- package/lib/kinds/line/goals.js +137 -0
- package/lib/kinds/line/index.d.ts +13 -0
- package/lib/kinds/line/index.js +17 -0
- package/lib/kinds/line/jump.d.ts +10 -0
- package/lib/kinds/line/jump.js +95 -0
- package/lib/kinds/line/kind.d.ts +25 -0
- package/lib/kinds/line/kind.js +125 -0
- package/lib/kinds/line/line.d.ts +63 -0
- package/lib/kinds/line/line.js +157 -0
- package/lib/kinds/line/operation.d.ts +69 -0
- package/lib/kinds/line/operation.js +1 -0
- package/lib/kinds/line/posts.d.ts +11 -0
- package/lib/kinds/line/posts.js +85 -0
- package/lib/kinds/line/registry.d.ts +2 -0
- package/lib/kinds/line/registry.js +11 -0
- package/lib/kinds/line/schema.d.ts +4 -0
- package/lib/kinds/line/schema.js +159 -0
- package/package.json +16 -4
- package/cores/handles.schema.json +0 -63
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://altnovatrail.github.io/widgets/kinds/line/1.3/line.schema.json",
|
|
4
|
+
"title": "A scene of the widget kind line",
|
|
5
|
+
"description": "A line of places, the operations a learner may play on it with their parameters, and at most one goal a state may meet. Under $defs, a move and a state of the kind, and the form of a scene's key.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"line": {
|
|
9
|
+
"description": "The line as the scene gives it.",
|
|
10
|
+
"$ref": "#/$defs/line",
|
|
11
|
+
"unevaluatedProperties": false
|
|
12
|
+
},
|
|
13
|
+
"operations": {
|
|
14
|
+
"description": "The operations a learner may play on the scene, each by its name with its parameters; none, for a line only to look at.",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"post": {
|
|
18
|
+
"description": "Put a post on any free place of the line; no parameters.",
|
|
19
|
+
"type": "object",
|
|
20
|
+
"unevaluatedProperties": false
|
|
21
|
+
},
|
|
22
|
+
"cut": {
|
|
23
|
+
"description": "Cut the line, a log or a ribbon from its first place to its last, at any inner place, or a ring at any place; no parameters.",
|
|
24
|
+
"type": "object",
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
},
|
|
27
|
+
"jump": {
|
|
28
|
+
"description": "A jumper that starts on a place and jumps a step of places at a time, forward and, where the scene allows it, back, never off an open line and round a ring.",
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"from": {
|
|
32
|
+
"description": "The place it starts on, by its number.",
|
|
33
|
+
"$ref": "#/$defs/place"
|
|
34
|
+
},
|
|
35
|
+
"step": {
|
|
36
|
+
"description": "The places one jump spans, fewer than the line's places.",
|
|
37
|
+
"type": "integer",
|
|
38
|
+
"minimum": 1,
|
|
39
|
+
"maximum": 100
|
|
40
|
+
},
|
|
41
|
+
"back": {
|
|
42
|
+
"description": "Whether it may jump back, towards smaller numbers, too; false where left out.",
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"from",
|
|
48
|
+
"step"
|
|
49
|
+
],
|
|
50
|
+
"unevaluatedProperties": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"unevaluatedProperties": false
|
|
54
|
+
},
|
|
55
|
+
"goal": {
|
|
56
|
+
"description": "What a state is to meet, one goal by its name with its parameters.",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"counters": {
|
|
60
|
+
"description": "A state whose counters have the values given; the key is the fewest moves to one, or, where max or min names a counter, its greatest or least value over such states. At least one of is, max and min; never both max and min.",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"is": {
|
|
64
|
+
"description": "The counters, each by its name, with the value it is to have.",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"propertyNames": {
|
|
67
|
+
"$ref": "#/$defs/counter"
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": {
|
|
70
|
+
"description": "The value the counter is to have.",
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"minimum": 0,
|
|
73
|
+
"maximum": 1000000000
|
|
74
|
+
},
|
|
75
|
+
"minProperties": 1
|
|
76
|
+
},
|
|
77
|
+
"max": {
|
|
78
|
+
"description": "The counter whose greatest value the key is.",
|
|
79
|
+
"$ref": "#/$defs/counter"
|
|
80
|
+
},
|
|
81
|
+
"min": {
|
|
82
|
+
"description": "The counter whose least value the key is.",
|
|
83
|
+
"$ref": "#/$defs/counter"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"minProperties": 1,
|
|
87
|
+
"not": {
|
|
88
|
+
"properties": {
|
|
89
|
+
"max": {
|
|
90
|
+
"description": "Max, never beside min."
|
|
91
|
+
},
|
|
92
|
+
"min": {
|
|
93
|
+
"description": "Min, never beside max."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"max",
|
|
98
|
+
"min"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"unevaluatedProperties": false
|
|
102
|
+
},
|
|
103
|
+
"every": {
|
|
104
|
+
"description": "A post on every place from one to another, both included; the whole line where neither is given.",
|
|
105
|
+
"type": "object",
|
|
106
|
+
"properties": {
|
|
107
|
+
"from": {
|
|
108
|
+
"description": "The first place of the stretch; the line's first where left out.",
|
|
109
|
+
"$ref": "#/$defs/place"
|
|
110
|
+
},
|
|
111
|
+
"to": {
|
|
112
|
+
"description": "The last place of the stretch, never before from on an open line, and on a ring past the last place round to it where before from; the line's last where left out.",
|
|
113
|
+
"$ref": "#/$defs/place"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"unevaluatedProperties": false
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"minProperties": 1,
|
|
120
|
+
"maxProperties": 1,
|
|
121
|
+
"unevaluatedProperties": false
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"line",
|
|
126
|
+
"operations"
|
|
127
|
+
],
|
|
128
|
+
"unevaluatedProperties": false,
|
|
129
|
+
"$defs": {
|
|
130
|
+
"place": {
|
|
131
|
+
"description": "A place of the line by its number: the line's first number for its first place, and each next place the next number.",
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"minimum": 0,
|
|
134
|
+
"maximum": 10000
|
|
135
|
+
},
|
|
136
|
+
"counter": {
|
|
137
|
+
"description": "A counter, a number of a state the widget shows, by its name: posts: The posts on the line. gaps: The gaps between neighbouring posts: on an open line one fewer than the posts, on a ring as many as the posts, a lone post's gap the way round from it back to it; none where there is no post. length: The gaps' lengths together, each its count of places times the spacing: on an open line from the first post to the last, 0 where there are fewer than two posts; on a ring the whole way round where there is a post, 0 where there is none. cuts, where the scene allows cut: The cuts made. pieces, where the scene allows cut: The pieces the cuts leave: on an open line one more than the cuts; on a ring as many as the cuts, and one where there is none. at, where the scene allows jump: The number of the place the jumper stands on. distance, where the scene allows jump: The length from the jumper's start to where it stands, their count of places apart times the spacing; on a ring, the shorter way round.",
|
|
138
|
+
"enum": [
|
|
139
|
+
"posts",
|
|
140
|
+
"gaps",
|
|
141
|
+
"length",
|
|
142
|
+
"cuts",
|
|
143
|
+
"pieces",
|
|
144
|
+
"at",
|
|
145
|
+
"distance"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"line": {
|
|
149
|
+
"description": "Places in a row, numbered from the first number on, each a spacing from the next, open or closed into a ring, and the posts that stand on them at the start.",
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"places": {
|
|
153
|
+
"description": "The count of places.",
|
|
154
|
+
"type": "integer",
|
|
155
|
+
"minimum": 2,
|
|
156
|
+
"maximum": 101
|
|
157
|
+
},
|
|
158
|
+
"first": {
|
|
159
|
+
"description": "The number of the first place, as the statement numbers it — a floor, a page, a post —, so that the last place's number is at most the greatest a place has; 0 where left out.",
|
|
160
|
+
"type": "integer",
|
|
161
|
+
"minimum": 0,
|
|
162
|
+
"maximum": 10000
|
|
163
|
+
},
|
|
164
|
+
"spacing": {
|
|
165
|
+
"description": "The length from a place to the next, in the statement's unit — metres, steps, minutes; 1 where left out.",
|
|
166
|
+
"type": "integer",
|
|
167
|
+
"minimum": 1,
|
|
168
|
+
"maximum": 10000
|
|
169
|
+
},
|
|
170
|
+
"vertical": {
|
|
171
|
+
"description": "Whether the line is drawn upright, its first place at the bottom, as floors, stairs or a well; it changes no rule, and a ring is never upright. False where left out.",
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
},
|
|
174
|
+
"closed": {
|
|
175
|
+
"description": "Whether the line is closed into a ring, its last place next to its first, as bushes round a flowerbed or a fence round a garden: as many gaps as posts, no end to cut at, and a jumper going on round it. False where left out.",
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
178
|
+
"sides": {
|
|
179
|
+
"description": "A ring's sides, where it is drawn as a figure with corners, as a square flowerbed or a garden's fence: each side by its count of gaps, the first place a corner and each next corner a side on, the sides' gaps together the ring's places. A round ring where left out; it changes no rule.",
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {
|
|
182
|
+
"description": "A side's count of gaps.",
|
|
183
|
+
"type": "integer",
|
|
184
|
+
"minimum": 1,
|
|
185
|
+
"maximum": 100
|
|
186
|
+
},
|
|
187
|
+
"minItems": 3,
|
|
188
|
+
"maxItems": 101
|
|
189
|
+
},
|
|
190
|
+
"posts": {
|
|
191
|
+
"description": "The places a post stands on at the scene's start, each once.",
|
|
192
|
+
"type": "array",
|
|
193
|
+
"items": {
|
|
194
|
+
"description": "A place, by its number.",
|
|
195
|
+
"$ref": "#/$defs/place"
|
|
196
|
+
},
|
|
197
|
+
"uniqueItems": true
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"required": [
|
|
201
|
+
"places"
|
|
202
|
+
],
|
|
203
|
+
"dependentRequired": {
|
|
204
|
+
"sides": [
|
|
205
|
+
"closed"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"allOf": [
|
|
209
|
+
{
|
|
210
|
+
"not": {
|
|
211
|
+
"properties": {
|
|
212
|
+
"closed": {
|
|
213
|
+
"description": "A ring.",
|
|
214
|
+
"const": true
|
|
215
|
+
},
|
|
216
|
+
"vertical": {
|
|
217
|
+
"description": "Upright.",
|
|
218
|
+
"const": true
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": [
|
|
222
|
+
"closed",
|
|
223
|
+
"vertical"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"not": {
|
|
229
|
+
"properties": {
|
|
230
|
+
"closed": {
|
|
231
|
+
"description": "An open line.",
|
|
232
|
+
"const": false
|
|
233
|
+
},
|
|
234
|
+
"sides": {
|
|
235
|
+
"description": "Sides given."
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"closed",
|
|
240
|
+
"sides"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
"move": {
|
|
247
|
+
"description": "A move: one member, named by the operation it plays, holding what a move of the operation holds.",
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"post": {
|
|
251
|
+
"description": "Put a post on a place.",
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"at": {
|
|
255
|
+
"description": "The place, by its number.",
|
|
256
|
+
"$ref": "#/$defs/place"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"required": [
|
|
260
|
+
"at"
|
|
261
|
+
],
|
|
262
|
+
"unevaluatedProperties": false
|
|
263
|
+
},
|
|
264
|
+
"cut": {
|
|
265
|
+
"description": "Cut at a place: never at an end of an open line.",
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"at": {
|
|
269
|
+
"description": "The place, by its number.",
|
|
270
|
+
"$ref": "#/$defs/place"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"at"
|
|
275
|
+
],
|
|
276
|
+
"unevaluatedProperties": false
|
|
277
|
+
},
|
|
278
|
+
"jump": {
|
|
279
|
+
"description": "A jump: forward, towards greater numbers, or back.",
|
|
280
|
+
"enum": [
|
|
281
|
+
"forward",
|
|
282
|
+
"back"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"minProperties": 1,
|
|
287
|
+
"maxProperties": 1
|
|
288
|
+
},
|
|
289
|
+
"state": {
|
|
290
|
+
"description": "A state: the posts, and a member for each operation of the scene that keeps one.",
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"posts": {
|
|
294
|
+
"description": "The places a post stands on now, by their numbers, in ascending order.",
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"description": "A place, by its number.",
|
|
298
|
+
"$ref": "#/$defs/place"
|
|
299
|
+
},
|
|
300
|
+
"uniqueItems": true
|
|
301
|
+
},
|
|
302
|
+
"cuts": {
|
|
303
|
+
"description": "The places cut, by their numbers, in ascending order.",
|
|
304
|
+
"type": "array",
|
|
305
|
+
"items": {
|
|
306
|
+
"description": "A place cut.",
|
|
307
|
+
"$ref": "#/$defs/place"
|
|
308
|
+
},
|
|
309
|
+
"uniqueItems": true
|
|
310
|
+
},
|
|
311
|
+
"at": {
|
|
312
|
+
"description": "The place the jumper stands on.",
|
|
313
|
+
"$ref": "#/$defs/place"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"required": [
|
|
317
|
+
"posts"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"key": {
|
|
321
|
+
"description": "The key of a scene, the form of the kind solver's proof: a whole number, whatever the goal asks — the fewest moves, a count, a maximum or a minimum —, or unreachable, where no state meets the goal.",
|
|
322
|
+
"oneOf": [
|
|
323
|
+
{
|
|
324
|
+
"description": "What the goal asks, a whole number.",
|
|
325
|
+
"type": "integer",
|
|
326
|
+
"minimum": 0,
|
|
327
|
+
"maximum": 9007199254740991
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"description": "No state of the scene's state graph meets the goal.",
|
|
331
|
+
"const": "unreachable"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Posts, cuts and a jumper on one line, with no goal, and the rules' every refusal: a post on a place that has one, a move that names no place of the line, a cut at an end of the line or where the line is cut, a jump back where the scene allows none, a jump that is neither forward nor back, an operation the scene does not allow or the kind does not have, and a move of no operation. A post and a cut on one place are each its own and stop neither the other nor the jumper.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 5,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"posts": [5]
|
|
8
|
+
},
|
|
9
|
+
"operations": {
|
|
10
|
+
"post": {},
|
|
11
|
+
"cut": {},
|
|
12
|
+
"jump": {
|
|
13
|
+
"from": 1,
|
|
14
|
+
"step": 2
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"seed": "0",
|
|
19
|
+
"start": {
|
|
20
|
+
"state": {
|
|
21
|
+
"posts": [5],
|
|
22
|
+
"cuts": [],
|
|
23
|
+
"at": 1
|
|
24
|
+
},
|
|
25
|
+
"goal": false
|
|
26
|
+
},
|
|
27
|
+
"sequences": [
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"move": {
|
|
31
|
+
"post": {
|
|
32
|
+
"at": 3
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"posts": [3, 5],
|
|
37
|
+
"cuts": [],
|
|
38
|
+
"at": 1
|
|
39
|
+
},
|
|
40
|
+
"goal": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"move": {
|
|
44
|
+
"post": {
|
|
45
|
+
"at": 3
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"refused": "taken"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"move": {
|
|
52
|
+
"post": {
|
|
53
|
+
"at": 5
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"refused": "taken"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"move": {
|
|
60
|
+
"post": {
|
|
61
|
+
"at": 6
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"refused": "no-place"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"move": {
|
|
68
|
+
"post": {
|
|
69
|
+
"at": 0
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"refused": "no-place"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"move": {
|
|
76
|
+
"post": 3
|
|
77
|
+
},
|
|
78
|
+
"refused": "no-place"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"move": {
|
|
82
|
+
"post": {
|
|
83
|
+
"at": 2,
|
|
84
|
+
"side": "left"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"refused": "no-place"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
{
|
|
92
|
+
"move": {
|
|
93
|
+
"cut": {
|
|
94
|
+
"at": 1
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"refused": "end"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"move": {
|
|
101
|
+
"cut": {
|
|
102
|
+
"at": 5
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"refused": "end"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"move": {
|
|
109
|
+
"cut": {
|
|
110
|
+
"at": 3
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"state": {
|
|
114
|
+
"posts": [5],
|
|
115
|
+
"cuts": [3],
|
|
116
|
+
"at": 1
|
|
117
|
+
},
|
|
118
|
+
"goal": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"move": {
|
|
122
|
+
"cut": {
|
|
123
|
+
"at": 3
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"refused": "cut"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"move": {
|
|
130
|
+
"cut": {
|
|
131
|
+
"at": 2
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"state": {
|
|
135
|
+
"posts": [5],
|
|
136
|
+
"cuts": [2, 3],
|
|
137
|
+
"at": 1
|
|
138
|
+
},
|
|
139
|
+
"goal": false
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
[
|
|
143
|
+
{
|
|
144
|
+
"move": {
|
|
145
|
+
"jump": "back"
|
|
146
|
+
},
|
|
147
|
+
"refused": "no-back"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"move": {
|
|
151
|
+
"jump": "up"
|
|
152
|
+
},
|
|
153
|
+
"refused": "not-a-jump"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"move": {
|
|
157
|
+
"jump": "forward"
|
|
158
|
+
},
|
|
159
|
+
"state": {
|
|
160
|
+
"posts": [5],
|
|
161
|
+
"cuts": [],
|
|
162
|
+
"at": 3
|
|
163
|
+
},
|
|
164
|
+
"goal": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"move": {
|
|
168
|
+
"jump": "forward"
|
|
169
|
+
},
|
|
170
|
+
"state": {
|
|
171
|
+
"posts": [5],
|
|
172
|
+
"cuts": [],
|
|
173
|
+
"at": 5
|
|
174
|
+
},
|
|
175
|
+
"goal": false
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"move": {
|
|
179
|
+
"jump": "forward"
|
|
180
|
+
},
|
|
181
|
+
"refused": "off-line"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
{
|
|
186
|
+
"move": {
|
|
187
|
+
"saw": {
|
|
188
|
+
"at": 2
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"refused": "unknown-op"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"move": {},
|
|
195
|
+
"refused": "not-a-move"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"move": {
|
|
199
|
+
"post": {
|
|
200
|
+
"at": 2
|
|
201
|
+
},
|
|
202
|
+
"cut": {
|
|
203
|
+
"at": 2
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"refused": "not-a-move"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
],
|
|
210
|
+
"proof": {
|
|
211
|
+
"undecided": "no-goal"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-12-d1-1: six trees grow in a row; how many gaps are there between them? The learner plants a tree on each of six places, and the key is the gaps of a row of six trees, 5: the greatest, as every row of six has as many.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 6,
|
|
6
|
+
"first": 1
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"post": {}
|
|
10
|
+
},
|
|
11
|
+
"goal": {
|
|
12
|
+
"counters": {
|
|
13
|
+
"is": {
|
|
14
|
+
"posts": 6
|
|
15
|
+
},
|
|
16
|
+
"max": "gaps"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"seed": "0",
|
|
21
|
+
"start": {
|
|
22
|
+
"state": {
|
|
23
|
+
"posts": []
|
|
24
|
+
},
|
|
25
|
+
"goal": false
|
|
26
|
+
},
|
|
27
|
+
"sequences": [
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"move": {
|
|
31
|
+
"post": {
|
|
32
|
+
"at": 1
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"posts": [1]
|
|
37
|
+
},
|
|
38
|
+
"goal": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"move": {
|
|
42
|
+
"post": {
|
|
43
|
+
"at": 2
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"state": {
|
|
47
|
+
"posts": [1, 2]
|
|
48
|
+
},
|
|
49
|
+
"goal": false
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"move": {
|
|
53
|
+
"post": {
|
|
54
|
+
"at": 3
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"state": {
|
|
58
|
+
"posts": [1, 2, 3]
|
|
59
|
+
},
|
|
60
|
+
"goal": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"move": {
|
|
64
|
+
"post": {
|
|
65
|
+
"at": 4
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"state": {
|
|
69
|
+
"posts": [1, 2, 3, 4]
|
|
70
|
+
},
|
|
71
|
+
"goal": false
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"move": {
|
|
75
|
+
"post": {
|
|
76
|
+
"at": 5
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"state": {
|
|
80
|
+
"posts": [1, 2, 3, 4, 5]
|
|
81
|
+
},
|
|
82
|
+
"goal": false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"move": {
|
|
86
|
+
"post": {
|
|
87
|
+
"at": 6
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"state": {
|
|
91
|
+
"posts": [1, 2, 3, 4, 5, 6]
|
|
92
|
+
},
|
|
93
|
+
"goal": true
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
],
|
|
97
|
+
"proof": {
|
|
98
|
+
"key": 5,
|
|
99
|
+
"asks": "max",
|
|
100
|
+
"witness": {
|
|
101
|
+
"path": [
|
|
102
|
+
{
|
|
103
|
+
"post": {
|
|
104
|
+
"at": 1
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"post": {
|
|
109
|
+
"at": 2
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"post": {
|
|
114
|
+
"at": 3
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"post": {
|
|
119
|
+
"at": 4
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"post": {
|
|
124
|
+
"at": 5
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"post": {
|
|
129
|
+
"at": 6
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"ends": [
|
|
135
|
+
{
|
|
136
|
+
"posts": [1, 2, 3, 4, 5, 6]
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|