@altnovatrail/widgets 0.1.2 → 0.2.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 +82 -3
- package/kinds/cells/cells.handles.json +148 -3
- package/kinds/cells/cells.schema.json +716 -8
- package/kinds/cells/vectors/bishop-grid-56-d1-1.json +105 -4
- package/kinds/cells/vectors/counter-cases.json +123 -0
- package/kinds/cells/vectors/counter-div-56-d1-3.json +57 -0
- package/kinds/cells/vectors/counter-div-56-d2-1.json +773 -0
- package/kinds/cells/vectors/counter-div-56-d2-3.json +65 -0
- package/kinds/cells/vectors/counter-div-56-d4-1.json +57 -0
- package/kinds/cells/vectors/counter-div-56-d4-2.json +106 -0
- package/kinds/cells/vectors/cut-cases.json +163 -0
- package/kinds/cells/vectors/cut-gaps-56-d2-1.json +142 -0
- package/kinds/cells/vectors/cut-grid-56-d2-4.json +45 -0
- package/kinds/cells/vectors/cut-grid-56-d4-1.json +154 -0
- package/kinds/cells/vectors/cut-grid-56-d4-2.json +136 -0
- package/kinds/cells/vectors/cut-invalid.json +48 -0
- package/kinds/cells/vectors/domino-grid-56-d3-2.json +238 -0
- package/kinds/cells/vectors/domino-limit.json +60 -0
- package/kinds/cells/vectors/domino-par-56-d3-2.json +194 -0
- package/kinds/cells/vectors/domino-par-56-d4-3.json +127 -0
- package/kinds/cells/vectors/figure-apart.json +47 -0
- package/kinds/cells/vectors/fold-12x12.json +79 -0
- package/kinds/cells/vectors/fold-14x14.json +79 -0
- package/kinds/cells/vectors/fold-26x26.json +79 -0
- package/kinds/cells/vectors/garden-enum-56-d3-4.json +96 -6
- package/kinds/cells/vectors/goat-grid-56-d4-4.json +325 -5
- package/kinds/cells/vectors/knight-after-no-parity.json +31 -0
- package/kinds/cells/vectors/knight-par-56-d2-2.json +61 -6
- package/kinds/cells/vectors/mosaic-grid-56-d2-2.json +84 -0
- package/kinds/cells/vectors/nodes-gaps-56-d2-2.json +44 -0
- package/kinds/cells/vectors/nodes-gaps-56-d4-2.json +70 -0
- package/kinds/cells/vectors/number-div-56-d2-2.json +49 -0
- package/kinds/cells/vectors/numbers-div-56-d3-1.json +24 -0
- package/kinds/cells/vectors/numbers-invalid.json +56 -0
- package/kinds/cells/vectors/paper-26x26.json +743 -0
- package/kinds/cells/vectors/paper-cube-12-d2-1.json +43 -19
- package/kinds/cells/vectors/paper-cube-12-d5-1.json +47 -4
- package/kinds/cells/vectors/paper-cube-56-d4-1.json +56 -5
- package/kinds/cells/vectors/paper-drawn-lines.json +184 -0
- package/kinds/cells/vectors/paper-grid-56-d1-2.json +46 -5
- package/kinds/cells/vectors/paper-turn-invalid.json +4 -4
- package/kinds/cells/vectors/path-6x6.json +119 -0
- package/kinds/cells/vectors/path-beside.json +108 -0
- package/kinds/cells/vectors/path-enum-12-d3-5.json +187 -0
- package/kinds/cells/vectors/path-enum-34-d4-3.json +412 -0
- package/kinds/cells/vectors/path-enum-56-d3-3.json +411 -0
- package/kinds/cells/vectors/path-enum-56-d3-5.json +351 -0
- package/kinds/cells/vectors/path-invalid.json +37 -0
- package/kinds/cells/vectors/path-limit.json +58 -0
- package/kinds/cells/vectors/path-maze.json +297 -0
- package/kinds/cells/vectors/path-unreachable.json +76 -0
- package/kinds/cells/vectors/perimeter-grid-56-d2-1.json +86 -0
- package/kinds/cells/vectors/perimeter-grid-56-d3-1.json +102 -0
- package/kinds/cells/vectors/perimeter-grid-56-d3-3.json +112 -0
- package/kinds/cells/vectors/perimeter-grid-56-d4-3.json +289 -0
- package/kinds/cells/vectors/polyomino-cases.json +191 -0
- package/kinds/cells/vectors/polyomino-grid-56-d3-4.json +205 -0
- package/kinds/cells/vectors/polyomino-grid-56-d4-1.json +137 -0
- package/kinds/cells/vectors/polyomino-grid-56-d5-3.json +157 -0
- package/kinds/cells/vectors/polyomino-invalid.json +45 -0
- package/kinds/cells/vectors/polyomino-one-pieces.json +28 -0
- package/kinds/cells/vectors/route-par-56-d3-3.json +245 -0
- package/kinds/cells/vectors/sides-gaps-56-d3-2.json +44 -0
- package/kinds/cells/vectors/sieve-div-56-d3-2.json +140 -0
- package/kinds/cells/vectors/tear-gaps-56-d3-1.json +84 -0
- package/kinds/cells/vectors/tear-limit.json +56 -0
- package/lib/cores/enumerate.d.ts +33 -0
- package/lib/cores/enumerate.js +77 -0
- package/lib/cores/kind.d.ts +70 -5
- package/lib/cores/kind.js +2 -2
- package/lib/cores/search.d.ts +47 -10
- package/lib/cores/search.js +129 -37
- package/lib/kinds/cells/bishop.d.ts +1 -1
- package/lib/kinds/cells/bishop.js +1 -1
- package/lib/kinds/cells/counter.d.ts +26 -0
- package/lib/kinds/cells/counter.js +249 -0
- package/lib/kinds/cells/cut.d.ts +46 -0
- package/lib/kinds/cells/cut.js +400 -0
- package/lib/kinds/cells/figure.d.ts +13 -0
- package/lib/kinds/cells/figure.js +114 -0
- package/lib/kinds/cells/holes.d.ts +6 -0
- package/lib/kinds/cells/holes.js +57 -0
- package/lib/kinds/cells/index.d.ts +8 -0
- package/lib/kinds/cells/index.js +10 -2
- package/lib/kinds/cells/kind.d.ts +3 -2
- package/lib/kinds/cells/kind.js +23 -8
- package/lib/kinds/cells/knight.d.ts +1 -1
- package/lib/kinds/cells/number.d.ts +6 -0
- package/lib/kinds/cells/number.js +32 -0
- package/lib/kinds/cells/operation.d.ts +27 -7
- package/lib/kinds/cells/paper.d.ts +10 -2
- package/lib/kinds/cells/paper.js +109 -13
- package/lib/kinds/cells/path.d.ts +38 -0
- package/lib/kinds/cells/path.js +288 -0
- package/lib/kinds/cells/piece.d.ts +27 -7
- package/lib/kinds/cells/piece.js +202 -37
- package/lib/kinds/cells/polyomino.d.ts +45 -0
- package/lib/kinds/cells/polyomino.js +461 -0
- package/lib/kinds/cells/registry.js +35 -4
- package/lib/kinds/cells/schema.js +45 -4
- package/lib/kinds/cells/sheet.d.ts +20 -1
- package/lib/kinds/cells/sheet.js +84 -6
- package/lib/kinds/cells/side.d.ts +33 -0
- package/lib/kinds/cells/side.js +86 -0
- package/lib/kinds/cells/sieve.d.ts +26 -0
- package/lib/kinds/cells/sieve.js +208 -0
- package/lib/kinds/cells/step.d.ts +1 -1
- package/lib/kinds/cells/step.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The squared paper of the course's task enum-56-d3-5: 3 rows by 4 columns, a path from S, A1, to the right and down alone, to F, C4, through M, B2. The goal counts the routes through M: 2 to M times 3 from it, 6, the task's key. A route past M ends on C4 and meets no goal.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"sheet": {
|
|
5
|
+
"rows": 3,
|
|
6
|
+
"cols": 4
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"path": {
|
|
10
|
+
"from": "A1",
|
|
11
|
+
"directions": ["right", "down"]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"goal": {
|
|
15
|
+
"path_count": {
|
|
16
|
+
"cell": "C4",
|
|
17
|
+
"through": ["B2"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"seed": "0",
|
|
22
|
+
"start": {
|
|
23
|
+
"state": {
|
|
24
|
+
"marks": {},
|
|
25
|
+
"path": ["A1"]
|
|
26
|
+
},
|
|
27
|
+
"goal": false
|
|
28
|
+
},
|
|
29
|
+
"sequences": [
|
|
30
|
+
[
|
|
31
|
+
{
|
|
32
|
+
"move": {
|
|
33
|
+
"path": {
|
|
34
|
+
"to": "A2"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"state": {
|
|
38
|
+
"marks": {},
|
|
39
|
+
"path": ["A1", "A2"]
|
|
40
|
+
},
|
|
41
|
+
"goal": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"move": {
|
|
45
|
+
"path": {
|
|
46
|
+
"to": "A3"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"state": {
|
|
50
|
+
"marks": {},
|
|
51
|
+
"path": ["A1", "A2", "A3"]
|
|
52
|
+
},
|
|
53
|
+
"goal": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"move": {
|
|
57
|
+
"path": {
|
|
58
|
+
"to": "A4"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"state": {
|
|
62
|
+
"marks": {},
|
|
63
|
+
"path": ["A1", "A2", "A3", "A4"]
|
|
64
|
+
},
|
|
65
|
+
"goal": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"move": {
|
|
69
|
+
"path": {
|
|
70
|
+
"to": "B4"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"state": {
|
|
74
|
+
"marks": {},
|
|
75
|
+
"path": ["A1", "A2", "A3", "A4", "B4"]
|
|
76
|
+
},
|
|
77
|
+
"goal": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"move": {
|
|
81
|
+
"path": {
|
|
82
|
+
"to": "C4"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"state": {
|
|
86
|
+
"marks": {},
|
|
87
|
+
"path": ["A1", "A2", "A3", "A4", "B4", "C4"]
|
|
88
|
+
},
|
|
89
|
+
"goal": false
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
{
|
|
94
|
+
"move": {
|
|
95
|
+
"path": {
|
|
96
|
+
"to": "B1"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"state": {
|
|
100
|
+
"marks": {},
|
|
101
|
+
"path": ["A1", "B1"]
|
|
102
|
+
},
|
|
103
|
+
"goal": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"move": {
|
|
107
|
+
"path": {
|
|
108
|
+
"to": "B2"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"state": {
|
|
112
|
+
"marks": {},
|
|
113
|
+
"path": ["A1", "B1", "B2"]
|
|
114
|
+
},
|
|
115
|
+
"goal": false
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"move": {
|
|
119
|
+
"path": {
|
|
120
|
+
"to": "C2"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"state": {
|
|
124
|
+
"marks": {},
|
|
125
|
+
"path": ["A1", "B1", "B2", "C2"]
|
|
126
|
+
},
|
|
127
|
+
"goal": false
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"move": {
|
|
131
|
+
"path": {
|
|
132
|
+
"to": "C3"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"state": {
|
|
136
|
+
"marks": {},
|
|
137
|
+
"path": ["A1", "B1", "B2", "C2", "C3"]
|
|
138
|
+
},
|
|
139
|
+
"goal": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"move": {
|
|
143
|
+
"path": {
|
|
144
|
+
"to": "C4"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"state": {
|
|
148
|
+
"marks": {},
|
|
149
|
+
"path": ["A1", "B1", "B2", "C2", "C3", "C4"]
|
|
150
|
+
},
|
|
151
|
+
"goal": true
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
],
|
|
155
|
+
"proof": {
|
|
156
|
+
"key": 6,
|
|
157
|
+
"asks": "count",
|
|
158
|
+
"witness": {
|
|
159
|
+
"paths": [
|
|
160
|
+
[
|
|
161
|
+
{
|
|
162
|
+
"path": {
|
|
163
|
+
"to": "A2"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"path": {
|
|
168
|
+
"to": "B2"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"path": {
|
|
173
|
+
"to": "B3"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"path": {
|
|
178
|
+
"to": "B4"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"path": {
|
|
183
|
+
"to": "C4"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
[
|
|
188
|
+
{
|
|
189
|
+
"path": {
|
|
190
|
+
"to": "A2"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"path": {
|
|
195
|
+
"to": "B2"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"path": {
|
|
200
|
+
"to": "B3"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"path": {
|
|
205
|
+
"to": "C3"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"path": {
|
|
210
|
+
"to": "C4"
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
[
|
|
215
|
+
{
|
|
216
|
+
"path": {
|
|
217
|
+
"to": "A2"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"path": {
|
|
222
|
+
"to": "B2"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"path": {
|
|
227
|
+
"to": "C2"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"path": {
|
|
232
|
+
"to": "C3"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"path": {
|
|
237
|
+
"to": "C4"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
[
|
|
242
|
+
{
|
|
243
|
+
"path": {
|
|
244
|
+
"to": "B1"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"path": {
|
|
249
|
+
"to": "B2"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"path": {
|
|
254
|
+
"to": "B3"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"path": {
|
|
259
|
+
"to": "B4"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"path": {
|
|
264
|
+
"to": "C4"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
{
|
|
270
|
+
"path": {
|
|
271
|
+
"to": "B1"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"path": {
|
|
276
|
+
"to": "B2"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"path": {
|
|
281
|
+
"to": "B3"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"path": {
|
|
286
|
+
"to": "C3"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"path": {
|
|
291
|
+
"to": "C4"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
[
|
|
296
|
+
{
|
|
297
|
+
"path": {
|
|
298
|
+
"to": "B1"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"path": {
|
|
303
|
+
"to": "B2"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"path": {
|
|
308
|
+
"to": "C2"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"path": {
|
|
313
|
+
"to": "C3"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"path": {
|
|
318
|
+
"to": "C4"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"ends": [
|
|
325
|
+
{
|
|
326
|
+
"marks": {},
|
|
327
|
+
"path": ["A1", "A2", "B2", "B3", "B4", "C4"]
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"marks": {},
|
|
331
|
+
"path": ["A1", "A2", "B2", "B3", "C3", "C4"]
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"marks": {},
|
|
335
|
+
"path": ["A1", "A2", "B2", "C2", "C3", "C4"]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"marks": {},
|
|
339
|
+
"path": ["A1", "B1", "B2", "B3", "B4", "C4"]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"marks": {},
|
|
343
|
+
"path": ["A1", "B1", "B2", "B3", "C3", "C4"]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"marks": {},
|
|
347
|
+
"path": ["A1", "B1", "B2", "C2", "C3", "C4"]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "A scene the kind refuses: its goal counts the paths to the cell the path starts on, and the scene allows paint beside the path, so the count would count each path once for every cell painted.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"sheet": {
|
|
5
|
+
"rows": 3,
|
|
6
|
+
"cols": 3
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"paint": {
|
|
10
|
+
"color": "red"
|
|
11
|
+
},
|
|
12
|
+
"path": {
|
|
13
|
+
"from": "A1"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"goal": {
|
|
17
|
+
"path_count": {
|
|
18
|
+
"cell": "A1"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"seed": "0",
|
|
23
|
+
"sequences": [],
|
|
24
|
+
"proof": {
|
|
25
|
+
"undecided": "invalid",
|
|
26
|
+
"errors": [
|
|
27
|
+
{
|
|
28
|
+
"path": "/goal/path_count/cell",
|
|
29
|
+
"message": "the path starts on it: a path that ends there is no way"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "/goal/path_count",
|
|
33
|
+
"message": "the scene allows paint beside path: a count of paths counts the path's states alone"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "A path across the sides of cells on a sheet of 5 by 5: its states, every path of distinct cells from A1, pass the kind's limit, so the scene does not decide; its steps are still played.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"sheet": {
|
|
5
|
+
"rows": 5,
|
|
6
|
+
"cols": 5
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"path": {
|
|
10
|
+
"from": "A1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"goal": {
|
|
14
|
+
"path_to": {
|
|
15
|
+
"cell": "E5"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"seed": "0",
|
|
20
|
+
"start": {
|
|
21
|
+
"state": {
|
|
22
|
+
"marks": {},
|
|
23
|
+
"path": ["A1"]
|
|
24
|
+
},
|
|
25
|
+
"goal": false
|
|
26
|
+
},
|
|
27
|
+
"sequences": [
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"move": {
|
|
31
|
+
"path": {
|
|
32
|
+
"to": "B1"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"state": {
|
|
36
|
+
"marks": {},
|
|
37
|
+
"path": ["A1", "B1"]
|
|
38
|
+
},
|
|
39
|
+
"goal": false
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"move": {
|
|
43
|
+
"path": {
|
|
44
|
+
"to": "B2"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"state": {
|
|
48
|
+
"marks": {},
|
|
49
|
+
"path": ["A1", "B1", "B2"]
|
|
50
|
+
},
|
|
51
|
+
"goal": false
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
],
|
|
55
|
+
"proof": {
|
|
56
|
+
"undecided": "limit"
|
|
57
|
+
}
|
|
58
|
+
}
|