@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.
Files changed (110) hide show
  1. package/README.md +1 -1
  2. package/cores/vector.schema.json +82 -3
  3. package/kinds/cells/cells.handles.json +148 -3
  4. package/kinds/cells/cells.schema.json +716 -8
  5. package/kinds/cells/vectors/bishop-grid-56-d1-1.json +105 -4
  6. package/kinds/cells/vectors/counter-cases.json +123 -0
  7. package/kinds/cells/vectors/counter-div-56-d1-3.json +57 -0
  8. package/kinds/cells/vectors/counter-div-56-d2-1.json +773 -0
  9. package/kinds/cells/vectors/counter-div-56-d2-3.json +65 -0
  10. package/kinds/cells/vectors/counter-div-56-d4-1.json +57 -0
  11. package/kinds/cells/vectors/counter-div-56-d4-2.json +106 -0
  12. package/kinds/cells/vectors/cut-cases.json +163 -0
  13. package/kinds/cells/vectors/cut-gaps-56-d2-1.json +142 -0
  14. package/kinds/cells/vectors/cut-grid-56-d2-4.json +45 -0
  15. package/kinds/cells/vectors/cut-grid-56-d4-1.json +154 -0
  16. package/kinds/cells/vectors/cut-grid-56-d4-2.json +136 -0
  17. package/kinds/cells/vectors/cut-invalid.json +48 -0
  18. package/kinds/cells/vectors/domino-grid-56-d3-2.json +238 -0
  19. package/kinds/cells/vectors/domino-limit.json +60 -0
  20. package/kinds/cells/vectors/domino-par-56-d3-2.json +194 -0
  21. package/kinds/cells/vectors/domino-par-56-d4-3.json +127 -0
  22. package/kinds/cells/vectors/figure-apart.json +47 -0
  23. package/kinds/cells/vectors/fold-12x12.json +79 -0
  24. package/kinds/cells/vectors/fold-14x14.json +79 -0
  25. package/kinds/cells/vectors/fold-26x26.json +79 -0
  26. package/kinds/cells/vectors/garden-enum-56-d3-4.json +96 -6
  27. package/kinds/cells/vectors/goat-grid-56-d4-4.json +325 -5
  28. package/kinds/cells/vectors/knight-after-no-parity.json +31 -0
  29. package/kinds/cells/vectors/knight-par-56-d2-2.json +61 -6
  30. package/kinds/cells/vectors/mosaic-grid-56-d2-2.json +84 -0
  31. package/kinds/cells/vectors/nodes-gaps-56-d2-2.json +44 -0
  32. package/kinds/cells/vectors/nodes-gaps-56-d4-2.json +70 -0
  33. package/kinds/cells/vectors/number-div-56-d2-2.json +49 -0
  34. package/kinds/cells/vectors/numbers-div-56-d3-1.json +24 -0
  35. package/kinds/cells/vectors/numbers-invalid.json +56 -0
  36. package/kinds/cells/vectors/paper-26x26.json +743 -0
  37. package/kinds/cells/vectors/paper-cube-12-d2-1.json +43 -19
  38. package/kinds/cells/vectors/paper-cube-12-d5-1.json +47 -4
  39. package/kinds/cells/vectors/paper-cube-56-d4-1.json +56 -5
  40. package/kinds/cells/vectors/paper-drawn-lines.json +184 -0
  41. package/kinds/cells/vectors/paper-grid-56-d1-2.json +46 -5
  42. package/kinds/cells/vectors/paper-turn-invalid.json +4 -4
  43. package/kinds/cells/vectors/path-6x6.json +119 -0
  44. package/kinds/cells/vectors/path-beside.json +108 -0
  45. package/kinds/cells/vectors/path-enum-12-d3-5.json +187 -0
  46. package/kinds/cells/vectors/path-enum-34-d4-3.json +412 -0
  47. package/kinds/cells/vectors/path-enum-56-d3-3.json +411 -0
  48. package/kinds/cells/vectors/path-enum-56-d3-5.json +351 -0
  49. package/kinds/cells/vectors/path-invalid.json +37 -0
  50. package/kinds/cells/vectors/path-limit.json +58 -0
  51. package/kinds/cells/vectors/path-maze.json +297 -0
  52. package/kinds/cells/vectors/path-unreachable.json +76 -0
  53. package/kinds/cells/vectors/perimeter-grid-56-d2-1.json +86 -0
  54. package/kinds/cells/vectors/perimeter-grid-56-d3-1.json +102 -0
  55. package/kinds/cells/vectors/perimeter-grid-56-d3-3.json +112 -0
  56. package/kinds/cells/vectors/perimeter-grid-56-d4-3.json +289 -0
  57. package/kinds/cells/vectors/polyomino-cases.json +191 -0
  58. package/kinds/cells/vectors/polyomino-grid-56-d3-4.json +205 -0
  59. package/kinds/cells/vectors/polyomino-grid-56-d4-1.json +137 -0
  60. package/kinds/cells/vectors/polyomino-grid-56-d5-3.json +157 -0
  61. package/kinds/cells/vectors/polyomino-invalid.json +45 -0
  62. package/kinds/cells/vectors/polyomino-one-pieces.json +28 -0
  63. package/kinds/cells/vectors/route-par-56-d3-3.json +245 -0
  64. package/kinds/cells/vectors/sides-gaps-56-d3-2.json +44 -0
  65. package/kinds/cells/vectors/sieve-div-56-d3-2.json +140 -0
  66. package/kinds/cells/vectors/tear-gaps-56-d3-1.json +84 -0
  67. package/kinds/cells/vectors/tear-limit.json +56 -0
  68. package/lib/cores/enumerate.d.ts +33 -0
  69. package/lib/cores/enumerate.js +77 -0
  70. package/lib/cores/kind.d.ts +70 -5
  71. package/lib/cores/kind.js +2 -2
  72. package/lib/cores/search.d.ts +47 -10
  73. package/lib/cores/search.js +129 -37
  74. package/lib/kinds/cells/bishop.d.ts +1 -1
  75. package/lib/kinds/cells/bishop.js +1 -1
  76. package/lib/kinds/cells/counter.d.ts +26 -0
  77. package/lib/kinds/cells/counter.js +249 -0
  78. package/lib/kinds/cells/cut.d.ts +46 -0
  79. package/lib/kinds/cells/cut.js +400 -0
  80. package/lib/kinds/cells/figure.d.ts +13 -0
  81. package/lib/kinds/cells/figure.js +114 -0
  82. package/lib/kinds/cells/holes.d.ts +6 -0
  83. package/lib/kinds/cells/holes.js +57 -0
  84. package/lib/kinds/cells/index.d.ts +8 -0
  85. package/lib/kinds/cells/index.js +10 -2
  86. package/lib/kinds/cells/kind.d.ts +3 -2
  87. package/lib/kinds/cells/kind.js +23 -8
  88. package/lib/kinds/cells/knight.d.ts +1 -1
  89. package/lib/kinds/cells/number.d.ts +6 -0
  90. package/lib/kinds/cells/number.js +32 -0
  91. package/lib/kinds/cells/operation.d.ts +27 -7
  92. package/lib/kinds/cells/paper.d.ts +10 -2
  93. package/lib/kinds/cells/paper.js +109 -13
  94. package/lib/kinds/cells/path.d.ts +38 -0
  95. package/lib/kinds/cells/path.js +288 -0
  96. package/lib/kinds/cells/piece.d.ts +27 -7
  97. package/lib/kinds/cells/piece.js +202 -37
  98. package/lib/kinds/cells/polyomino.d.ts +45 -0
  99. package/lib/kinds/cells/polyomino.js +461 -0
  100. package/lib/kinds/cells/registry.js +35 -4
  101. package/lib/kinds/cells/schema.js +45 -4
  102. package/lib/kinds/cells/sheet.d.ts +20 -1
  103. package/lib/kinds/cells/sheet.js +84 -6
  104. package/lib/kinds/cells/side.d.ts +33 -0
  105. package/lib/kinds/cells/side.js +86 -0
  106. package/lib/kinds/cells/sieve.d.ts +26 -0
  107. package/lib/kinds/cells/sieve.js +208 -0
  108. package/lib/kinds/cells/step.d.ts +1 -1
  109. package/lib/kinds/cells/step.js +1 -1
  110. package/package.json +5 -1
@@ -0,0 +1,108 @@
1
+ {
2
+ "description": "A path beside paint and a piece of the step, on a sheet of 2 by 2 with no goal: the path, from A1, and the piece, on B2, each take their own moves, as two pieces do, and the path steps onto the cell the piece left. On the widget a tap on the path's end chooses it, as a tap on the piece does, before the cell it steps onto.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 2,
6
+ "cols": 2
7
+ },
8
+ "operations": {
9
+ "paint": {
10
+ "color": "red"
11
+ },
12
+ "step": {
13
+ "cell": "B2"
14
+ },
15
+ "path": {
16
+ "from": "A1"
17
+ }
18
+ }
19
+ },
20
+ "seed": "0",
21
+ "start": {
22
+ "state": {
23
+ "marks": {},
24
+ "step_at": "B2",
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
+ "step_at": "B2",
40
+ "path": ["A1", "A2"]
41
+ },
42
+ "goal": false
43
+ },
44
+ {
45
+ "move": {
46
+ "paint": {
47
+ "cell": "B1"
48
+ }
49
+ },
50
+ "state": {
51
+ "marks": {
52
+ "B1": {
53
+ "color": "red"
54
+ }
55
+ },
56
+ "step_at": "B2",
57
+ "path": ["A1", "A2"]
58
+ },
59
+ "goal": false
60
+ },
61
+ {
62
+ "move": {
63
+ "step": {
64
+ "to": "B1"
65
+ }
66
+ },
67
+ "state": {
68
+ "marks": {
69
+ "B1": {
70
+ "color": "red"
71
+ }
72
+ },
73
+ "step_at": "B1",
74
+ "path": ["A1", "A2"]
75
+ },
76
+ "goal": false
77
+ },
78
+ {
79
+ "move": {
80
+ "path": {
81
+ "to": "B2"
82
+ }
83
+ },
84
+ "state": {
85
+ "marks": {
86
+ "B1": {
87
+ "color": "red"
88
+ }
89
+ },
90
+ "step_at": "B1",
91
+ "path": ["A1", "A2", "B2"]
92
+ },
93
+ "goal": false
94
+ },
95
+ {
96
+ "move": {
97
+ "path": {
98
+ "to": "A1"
99
+ }
100
+ },
101
+ "refused": "not-a-step"
102
+ }
103
+ ]
104
+ ],
105
+ "proof": {
106
+ "undecided": "no-goal"
107
+ }
108
+ }
@@ -0,0 +1,187 @@
1
+ {
2
+ "description": "The robot of the course's task enum-12-d3-5: a sheet of 2 by 3, a path from B1 that steps up and to the right alone, to A3. The goal counts the paths that end on A3, the orders of two steps right and one up: 3, the task's key. A step left is no step of the scene.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 2,
6
+ "cols": 3
7
+ },
8
+ "operations": {
9
+ "path": {
10
+ "from": "B1",
11
+ "directions": ["up", "right"]
12
+ }
13
+ },
14
+ "goal": {
15
+ "path_count": {
16
+ "cell": "A3"
17
+ }
18
+ }
19
+ },
20
+ "seed": "0",
21
+ "start": {
22
+ "state": {
23
+ "marks": {},
24
+ "path": ["B1"]
25
+ },
26
+ "goal": false
27
+ },
28
+ "sequences": [
29
+ [
30
+ {
31
+ "move": {
32
+ "path": {
33
+ "to": "A1"
34
+ }
35
+ },
36
+ "state": {
37
+ "marks": {},
38
+ "path": ["B1", "A1"]
39
+ },
40
+ "goal": false
41
+ },
42
+ {
43
+ "move": {
44
+ "path": {
45
+ "to": "A2"
46
+ }
47
+ },
48
+ "state": {
49
+ "marks": {},
50
+ "path": ["B1", "A1", "A2"]
51
+ },
52
+ "goal": false
53
+ },
54
+ {
55
+ "move": {
56
+ "path": {
57
+ "to": "A3"
58
+ }
59
+ },
60
+ "state": {
61
+ "marks": {},
62
+ "path": ["B1", "A1", "A2", "A3"]
63
+ },
64
+ "goal": true
65
+ }
66
+ ],
67
+ [
68
+ {
69
+ "move": {
70
+ "path": {
71
+ "to": "B2"
72
+ }
73
+ },
74
+ "state": {
75
+ "marks": {},
76
+ "path": ["B1", "B2"]
77
+ },
78
+ "goal": false
79
+ },
80
+ {
81
+ "move": {
82
+ "path": {
83
+ "to": "B1"
84
+ }
85
+ },
86
+ "refused": "not-a-step"
87
+ },
88
+ {
89
+ "move": {
90
+ "path": {
91
+ "to": "A2"
92
+ }
93
+ },
94
+ "state": {
95
+ "marks": {},
96
+ "path": ["B1", "B2", "A2"]
97
+ },
98
+ "goal": false
99
+ },
100
+ {
101
+ "move": {
102
+ "path": {
103
+ "to": "A3"
104
+ }
105
+ },
106
+ "state": {
107
+ "marks": {},
108
+ "path": ["B1", "B2", "A2", "A3"]
109
+ },
110
+ "goal": true
111
+ }
112
+ ]
113
+ ],
114
+ "proof": {
115
+ "key": 3,
116
+ "asks": "count",
117
+ "witness": {
118
+ "paths": [
119
+ [
120
+ {
121
+ "path": {
122
+ "to": "A1"
123
+ }
124
+ },
125
+ {
126
+ "path": {
127
+ "to": "A2"
128
+ }
129
+ },
130
+ {
131
+ "path": {
132
+ "to": "A3"
133
+ }
134
+ }
135
+ ],
136
+ [
137
+ {
138
+ "path": {
139
+ "to": "B2"
140
+ }
141
+ },
142
+ {
143
+ "path": {
144
+ "to": "A2"
145
+ }
146
+ },
147
+ {
148
+ "path": {
149
+ "to": "A3"
150
+ }
151
+ }
152
+ ],
153
+ [
154
+ {
155
+ "path": {
156
+ "to": "B2"
157
+ }
158
+ },
159
+ {
160
+ "path": {
161
+ "to": "B3"
162
+ }
163
+ },
164
+ {
165
+ "path": {
166
+ "to": "A3"
167
+ }
168
+ }
169
+ ]
170
+ ]
171
+ },
172
+ "ends": [
173
+ {
174
+ "marks": {},
175
+ "path": ["B1", "A1", "A2", "A3"]
176
+ },
177
+ {
178
+ "marks": {},
179
+ "path": ["B1", "B2", "A2", "A3"]
180
+ },
181
+ {
182
+ "marks": {},
183
+ "path": ["B1", "B2", "B3", "A3"]
184
+ }
185
+ ]
186
+ }
187
+ }
@@ -0,0 +1,412 @@
1
+ {
2
+ "description": "The robot of the course's task enum-34-d4-3: a sheet of 3 by 4, a path from C1 up and to the right alone, to A4. The goal counts the paths, the orders of three steps right and two up: 10, the task's key.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 3,
6
+ "cols": 4
7
+ },
8
+ "operations": {
9
+ "path": {
10
+ "from": "C1",
11
+ "directions": ["up", "right"]
12
+ }
13
+ },
14
+ "goal": {
15
+ "path_count": {
16
+ "cell": "A4"
17
+ }
18
+ }
19
+ },
20
+ "seed": "0",
21
+ "start": {
22
+ "state": {
23
+ "marks": {},
24
+ "path": ["C1"]
25
+ },
26
+ "goal": false
27
+ },
28
+ "sequences": [
29
+ [
30
+ {
31
+ "move": {
32
+ "path": {
33
+ "to": "C2"
34
+ }
35
+ },
36
+ "state": {
37
+ "marks": {},
38
+ "path": ["C1", "C2"]
39
+ },
40
+ "goal": false
41
+ },
42
+ {
43
+ "move": {
44
+ "path": {
45
+ "to": "B2"
46
+ }
47
+ },
48
+ "state": {
49
+ "marks": {},
50
+ "path": ["C1", "C2", "B2"]
51
+ },
52
+ "goal": false
53
+ },
54
+ {
55
+ "move": {
56
+ "path": {
57
+ "to": "B3"
58
+ }
59
+ },
60
+ "state": {
61
+ "marks": {},
62
+ "path": ["C1", "C2", "B2", "B3"]
63
+ },
64
+ "goal": false
65
+ },
66
+ {
67
+ "move": {
68
+ "path": {
69
+ "to": "A3"
70
+ }
71
+ },
72
+ "state": {
73
+ "marks": {},
74
+ "path": ["C1", "C2", "B2", "B3", "A3"]
75
+ },
76
+ "goal": false
77
+ },
78
+ {
79
+ "move": {
80
+ "path": {
81
+ "to": "A4"
82
+ }
83
+ },
84
+ "state": {
85
+ "marks": {},
86
+ "path": ["C1", "C2", "B2", "B3", "A3", "A4"]
87
+ },
88
+ "goal": true
89
+ }
90
+ ]
91
+ ],
92
+ "proof": {
93
+ "key": 10,
94
+ "asks": "count",
95
+ "witness": {
96
+ "paths": [
97
+ [
98
+ {
99
+ "path": {
100
+ "to": "B1"
101
+ }
102
+ },
103
+ {
104
+ "path": {
105
+ "to": "A1"
106
+ }
107
+ },
108
+ {
109
+ "path": {
110
+ "to": "A2"
111
+ }
112
+ },
113
+ {
114
+ "path": {
115
+ "to": "A3"
116
+ }
117
+ },
118
+ {
119
+ "path": {
120
+ "to": "A4"
121
+ }
122
+ }
123
+ ],
124
+ [
125
+ {
126
+ "path": {
127
+ "to": "B1"
128
+ }
129
+ },
130
+ {
131
+ "path": {
132
+ "to": "B2"
133
+ }
134
+ },
135
+ {
136
+ "path": {
137
+ "to": "A2"
138
+ }
139
+ },
140
+ {
141
+ "path": {
142
+ "to": "A3"
143
+ }
144
+ },
145
+ {
146
+ "path": {
147
+ "to": "A4"
148
+ }
149
+ }
150
+ ],
151
+ [
152
+ {
153
+ "path": {
154
+ "to": "B1"
155
+ }
156
+ },
157
+ {
158
+ "path": {
159
+ "to": "B2"
160
+ }
161
+ },
162
+ {
163
+ "path": {
164
+ "to": "B3"
165
+ }
166
+ },
167
+ {
168
+ "path": {
169
+ "to": "A3"
170
+ }
171
+ },
172
+ {
173
+ "path": {
174
+ "to": "A4"
175
+ }
176
+ }
177
+ ],
178
+ [
179
+ {
180
+ "path": {
181
+ "to": "B1"
182
+ }
183
+ },
184
+ {
185
+ "path": {
186
+ "to": "B2"
187
+ }
188
+ },
189
+ {
190
+ "path": {
191
+ "to": "B3"
192
+ }
193
+ },
194
+ {
195
+ "path": {
196
+ "to": "B4"
197
+ }
198
+ },
199
+ {
200
+ "path": {
201
+ "to": "A4"
202
+ }
203
+ }
204
+ ],
205
+ [
206
+ {
207
+ "path": {
208
+ "to": "C2"
209
+ }
210
+ },
211
+ {
212
+ "path": {
213
+ "to": "B2"
214
+ }
215
+ },
216
+ {
217
+ "path": {
218
+ "to": "A2"
219
+ }
220
+ },
221
+ {
222
+ "path": {
223
+ "to": "A3"
224
+ }
225
+ },
226
+ {
227
+ "path": {
228
+ "to": "A4"
229
+ }
230
+ }
231
+ ],
232
+ [
233
+ {
234
+ "path": {
235
+ "to": "C2"
236
+ }
237
+ },
238
+ {
239
+ "path": {
240
+ "to": "B2"
241
+ }
242
+ },
243
+ {
244
+ "path": {
245
+ "to": "B3"
246
+ }
247
+ },
248
+ {
249
+ "path": {
250
+ "to": "A3"
251
+ }
252
+ },
253
+ {
254
+ "path": {
255
+ "to": "A4"
256
+ }
257
+ }
258
+ ],
259
+ [
260
+ {
261
+ "path": {
262
+ "to": "C2"
263
+ }
264
+ },
265
+ {
266
+ "path": {
267
+ "to": "B2"
268
+ }
269
+ },
270
+ {
271
+ "path": {
272
+ "to": "B3"
273
+ }
274
+ },
275
+ {
276
+ "path": {
277
+ "to": "B4"
278
+ }
279
+ },
280
+ {
281
+ "path": {
282
+ "to": "A4"
283
+ }
284
+ }
285
+ ],
286
+ [
287
+ {
288
+ "path": {
289
+ "to": "C2"
290
+ }
291
+ },
292
+ {
293
+ "path": {
294
+ "to": "C3"
295
+ }
296
+ },
297
+ {
298
+ "path": {
299
+ "to": "B3"
300
+ }
301
+ },
302
+ {
303
+ "path": {
304
+ "to": "A3"
305
+ }
306
+ },
307
+ {
308
+ "path": {
309
+ "to": "A4"
310
+ }
311
+ }
312
+ ],
313
+ [
314
+ {
315
+ "path": {
316
+ "to": "C2"
317
+ }
318
+ },
319
+ {
320
+ "path": {
321
+ "to": "C3"
322
+ }
323
+ },
324
+ {
325
+ "path": {
326
+ "to": "B3"
327
+ }
328
+ },
329
+ {
330
+ "path": {
331
+ "to": "B4"
332
+ }
333
+ },
334
+ {
335
+ "path": {
336
+ "to": "A4"
337
+ }
338
+ }
339
+ ],
340
+ [
341
+ {
342
+ "path": {
343
+ "to": "C2"
344
+ }
345
+ },
346
+ {
347
+ "path": {
348
+ "to": "C3"
349
+ }
350
+ },
351
+ {
352
+ "path": {
353
+ "to": "C4"
354
+ }
355
+ },
356
+ {
357
+ "path": {
358
+ "to": "B4"
359
+ }
360
+ },
361
+ {
362
+ "path": {
363
+ "to": "A4"
364
+ }
365
+ }
366
+ ]
367
+ ]
368
+ },
369
+ "ends": [
370
+ {
371
+ "marks": {},
372
+ "path": ["C1", "B1", "A1", "A2", "A3", "A4"]
373
+ },
374
+ {
375
+ "marks": {},
376
+ "path": ["C1", "B1", "B2", "A2", "A3", "A4"]
377
+ },
378
+ {
379
+ "marks": {},
380
+ "path": ["C1", "B1", "B2", "B3", "A3", "A4"]
381
+ },
382
+ {
383
+ "marks": {},
384
+ "path": ["C1", "B1", "B2", "B3", "B4", "A4"]
385
+ },
386
+ {
387
+ "marks": {},
388
+ "path": ["C1", "C2", "B2", "A2", "A3", "A4"]
389
+ },
390
+ {
391
+ "marks": {},
392
+ "path": ["C1", "C2", "B2", "B3", "A3", "A4"]
393
+ },
394
+ {
395
+ "marks": {},
396
+ "path": ["C1", "C2", "B2", "B3", "B4", "A4"]
397
+ },
398
+ {
399
+ "marks": {},
400
+ "path": ["C1", "C2", "C3", "B3", "A3", "A4"]
401
+ },
402
+ {
403
+ "marks": {},
404
+ "path": ["C1", "C2", "C3", "B3", "B4", "A4"]
405
+ },
406
+ {
407
+ "marks": {},
408
+ "path": ["C1", "C2", "C3", "C4", "B4", "A4"]
409
+ }
410
+ ]
411
+ }
412
+ }