@altnovatrail/widgets 0.1.1 → 0.1.3

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 (102) hide show
  1. package/README.md +1 -1
  2. package/cores/vector.schema.json +82 -3
  3. package/kinds/cells/cells.handles.json +145 -0
  4. package/kinds/cells/cells.schema.json +652 -4
  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/mosaic-grid-56-d2-2.json +84 -0
  29. package/kinds/cells/vectors/nodes-gaps-56-d2-2.json +44 -0
  30. package/kinds/cells/vectors/nodes-gaps-56-d4-2.json +70 -0
  31. package/kinds/cells/vectors/number-div-56-d2-2.json +49 -0
  32. package/kinds/cells/vectors/numbers-div-56-d3-1.json +24 -0
  33. package/kinds/cells/vectors/numbers-invalid.json +56 -0
  34. package/kinds/cells/vectors/paper-26x26.json +743 -0
  35. package/kinds/cells/vectors/paper-cube-12-d2-1.json +43 -19
  36. package/kinds/cells/vectors/paper-cube-12-d5-1.json +47 -4
  37. package/kinds/cells/vectors/paper-cube-56-d4-1.json +56 -5
  38. package/kinds/cells/vectors/paper-drawn-lines.json +149 -0
  39. package/kinds/cells/vectors/paper-grid-56-d1-2.json +46 -5
  40. package/kinds/cells/vectors/paper-turn-invalid.json +4 -4
  41. package/kinds/cells/vectors/path-6x6.json +119 -0
  42. package/kinds/cells/vectors/path-beside.json +108 -0
  43. package/kinds/cells/vectors/path-enum-12-d3-5.json +187 -0
  44. package/kinds/cells/vectors/path-enum-34-d4-3.json +412 -0
  45. package/kinds/cells/vectors/path-enum-56-d3-3.json +411 -0
  46. package/kinds/cells/vectors/path-enum-56-d3-5.json +351 -0
  47. package/kinds/cells/vectors/path-invalid.json +37 -0
  48. package/kinds/cells/vectors/path-limit.json +58 -0
  49. package/kinds/cells/vectors/path-maze.json +297 -0
  50. package/kinds/cells/vectors/path-unreachable.json +76 -0
  51. package/kinds/cells/vectors/perimeter-grid-56-d2-1.json +86 -0
  52. package/kinds/cells/vectors/perimeter-grid-56-d3-1.json +102 -0
  53. package/kinds/cells/vectors/perimeter-grid-56-d3-3.json +112 -0
  54. package/kinds/cells/vectors/perimeter-grid-56-d4-3.json +289 -0
  55. package/kinds/cells/vectors/polyomino-cases.json +191 -0
  56. package/kinds/cells/vectors/polyomino-grid-56-d3-4.json +205 -0
  57. package/kinds/cells/vectors/polyomino-grid-56-d4-1.json +137 -0
  58. package/kinds/cells/vectors/polyomino-grid-56-d5-3.json +157 -0
  59. package/kinds/cells/vectors/polyomino-invalid.json +45 -0
  60. package/kinds/cells/vectors/route-par-56-d3-3.json +245 -0
  61. package/kinds/cells/vectors/sides-gaps-56-d3-2.json +44 -0
  62. package/kinds/cells/vectors/sieve-div-56-d3-2.json +140 -0
  63. package/kinds/cells/vectors/tear-gaps-56-d3-1.json +84 -0
  64. package/kinds/cells/vectors/tear-limit.json +56 -0
  65. package/lib/cores/enumerate.d.ts +33 -0
  66. package/lib/cores/enumerate.js +77 -0
  67. package/lib/cores/kind.d.ts +55 -5
  68. package/lib/cores/search.d.ts +27 -8
  69. package/lib/cores/search.js +85 -28
  70. package/lib/kinds/cells/bishop.d.ts +1 -1
  71. package/lib/kinds/cells/bishop.js +1 -1
  72. package/lib/kinds/cells/counter.d.ts +26 -0
  73. package/lib/kinds/cells/counter.js +249 -0
  74. package/lib/kinds/cells/cut.d.ts +46 -0
  75. package/lib/kinds/cells/cut.js +400 -0
  76. package/lib/kinds/cells/figure.d.ts +13 -0
  77. package/lib/kinds/cells/figure.js +114 -0
  78. package/lib/kinds/cells/holes.d.ts +6 -0
  79. package/lib/kinds/cells/holes.js +57 -0
  80. package/lib/kinds/cells/kind.js +4 -2
  81. package/lib/kinds/cells/number.d.ts +6 -0
  82. package/lib/kinds/cells/number.js +32 -0
  83. package/lib/kinds/cells/operation.d.ts +12 -6
  84. package/lib/kinds/cells/paper.d.ts +10 -2
  85. package/lib/kinds/cells/paper.js +90 -8
  86. package/lib/kinds/cells/path.d.ts +38 -0
  87. package/lib/kinds/cells/path.js +288 -0
  88. package/lib/kinds/cells/piece.d.ts +10 -1
  89. package/lib/kinds/cells/piece.js +87 -3
  90. package/lib/kinds/cells/polyomino.d.ts +45 -0
  91. package/lib/kinds/cells/polyomino.js +450 -0
  92. package/lib/kinds/cells/registry.js +35 -4
  93. package/lib/kinds/cells/schema.js +41 -3
  94. package/lib/kinds/cells/sheet.d.ts +20 -1
  95. package/lib/kinds/cells/sheet.js +84 -6
  96. package/lib/kinds/cells/side.d.ts +33 -0
  97. package/lib/kinds/cells/side.js +86 -0
  98. package/lib/kinds/cells/sieve.d.ts +26 -0
  99. package/lib/kinds/cells/sieve.js +208 -0
  100. package/lib/kinds/cells/step.d.ts +1 -1
  101. package/lib/kinds/cells/step.js +1 -1
  102. package/package.json +5 -1
@@ -0,0 +1,137 @@
1
+ {
2
+ "description": "The course's task grid-56-d4-1 by pieces laid rather than cuts: a bar of 2 rows of 3 squares broken into two pieces of 3 squares, each holding together by whole sides, laid as figures of three cells of every shape. The goal counts the ways the figures cover the bar: 3, the task's key — the two rows, and the two corners. The sequence lays the corner A1, B1, B2 and the other one.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 2,
6
+ "cols": 3
7
+ },
8
+ "operations": {
9
+ "polyomino": {
10
+ "cells": 3
11
+ }
12
+ },
13
+ "goal": {
14
+ "polyomino_tilings": {}
15
+ }
16
+ },
17
+ "seed": "0",
18
+ "start": {
19
+ "state": {
20
+ "marks": {},
21
+ "polyomino": []
22
+ },
23
+ "goal": false
24
+ },
25
+ "sequences": [
26
+ [
27
+ {
28
+ "move": {
29
+ "polyomino": {
30
+ "lay": {
31
+ "cells": ["A1", "B1", "B2"]
32
+ }
33
+ }
34
+ },
35
+ "state": {
36
+ "marks": {},
37
+ "polyomino": [["A1", "B1", "B2"]]
38
+ },
39
+ "goal": false
40
+ },
41
+ {
42
+ "move": {
43
+ "polyomino": {
44
+ "lay": {
45
+ "cells": ["A1", "A2", "A3"]
46
+ }
47
+ }
48
+ },
49
+ "refused": "overlap"
50
+ },
51
+ {
52
+ "move": {
53
+ "polyomino": {
54
+ "lay": {
55
+ "cells": ["A2", "A3", "B3"]
56
+ }
57
+ }
58
+ },
59
+ "state": {
60
+ "marks": {},
61
+ "polyomino": [["A1", "B1", "B2"], ["A2", "A3", "B3"]]
62
+ },
63
+ "goal": true
64
+ }
65
+ ]
66
+ ],
67
+ "proof": {
68
+ "key": 3,
69
+ "asks": "count",
70
+ "witness": {
71
+ "paths": [
72
+ [
73
+ {
74
+ "polyomino": {
75
+ "lay": {
76
+ "cells": ["A1", "A2", "A3"]
77
+ }
78
+ }
79
+ },
80
+ {
81
+ "polyomino": {
82
+ "lay": {
83
+ "cells": ["B1", "B2", "B3"]
84
+ }
85
+ }
86
+ }
87
+ ],
88
+ [
89
+ {
90
+ "polyomino": {
91
+ "lay": {
92
+ "cells": ["A1", "A2", "B1"]
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "polyomino": {
98
+ "lay": {
99
+ "cells": ["A3", "B2", "B3"]
100
+ }
101
+ }
102
+ }
103
+ ],
104
+ [
105
+ {
106
+ "polyomino": {
107
+ "lay": {
108
+ "cells": ["A1", "B1", "B2"]
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "polyomino": {
114
+ "lay": {
115
+ "cells": ["A2", "A3", "B3"]
116
+ }
117
+ }
118
+ }
119
+ ]
120
+ ]
121
+ },
122
+ "ends": [
123
+ {
124
+ "marks": {},
125
+ "polyomino": [["A1", "A2", "A3"], ["B1", "B2", "B3"]]
126
+ },
127
+ {
128
+ "marks": {},
129
+ "polyomino": [["A1", "A2", "B1"], ["A3", "B2", "B3"]]
130
+ },
131
+ {
132
+ "marks": {},
133
+ "polyomino": [["A1", "B1", "B2"], ["A2", "A3", "B3"]]
134
+ }
135
+ ]
136
+ }
137
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "description": "The course's task grid-56-d5-3: a tile of 4 square cells joined along whole sides, two tiles one shape where one turned or flipped lies on the other. One figure of four cells of every shape on a sheet of 4 by 4, where the line of four fits; the goal counts the shapes of the figure laid up to a move, a turn and a turn over: 5, the task's key. The sequence lays a T, is refused a second figure, lifts the T and lays the line.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 4,
6
+ "cols": 4
7
+ },
8
+ "operations": {
9
+ "polyomino": {
10
+ "cells": 4,
11
+ "pieces": 1
12
+ }
13
+ },
14
+ "goal": {
15
+ "polyomino_shapes": {}
16
+ }
17
+ },
18
+ "seed": "0",
19
+ "start": {
20
+ "state": {
21
+ "marks": {},
22
+ "polyomino": []
23
+ },
24
+ "goal": false
25
+ },
26
+ "sequences": [
27
+ [
28
+ {
29
+ "move": {
30
+ "polyomino": {
31
+ "lay": {
32
+ "cells": ["A1", "A2", "A3", "B2"]
33
+ }
34
+ }
35
+ },
36
+ "state": {
37
+ "marks": {},
38
+ "polyomino": [["A1", "A2", "A3", "B2"]]
39
+ },
40
+ "goal": true
41
+ },
42
+ {
43
+ "move": {
44
+ "polyomino": {
45
+ "lay": {
46
+ "cells": ["C1", "C2", "D1", "D2"]
47
+ }
48
+ }
49
+ },
50
+ "refused": "all-laid"
51
+ },
52
+ {
53
+ "move": {
54
+ "polyomino": {
55
+ "lift": {
56
+ "cell": "B2"
57
+ }
58
+ }
59
+ },
60
+ "state": {
61
+ "marks": {},
62
+ "polyomino": []
63
+ },
64
+ "goal": false
65
+ },
66
+ {
67
+ "move": {
68
+ "polyomino": {
69
+ "lay": {
70
+ "cells": ["D1", "D2", "D3", "D4"]
71
+ }
72
+ }
73
+ },
74
+ "state": {
75
+ "marks": {},
76
+ "polyomino": [["D1", "D2", "D3", "D4"]]
77
+ },
78
+ "goal": true
79
+ }
80
+ ]
81
+ ],
82
+ "proof": {
83
+ "key": 5,
84
+ "asks": "count",
85
+ "witness": {
86
+ "paths": [
87
+ [
88
+ {
89
+ "polyomino": {
90
+ "lay": {
91
+ "cells": ["A1", "A2", "A3", "A4"]
92
+ }
93
+ }
94
+ }
95
+ ],
96
+ [
97
+ {
98
+ "polyomino": {
99
+ "lay": {
100
+ "cells": ["A1", "A2", "A3", "B1"]
101
+ }
102
+ }
103
+ }
104
+ ],
105
+ [
106
+ {
107
+ "polyomino": {
108
+ "lay": {
109
+ "cells": ["A1", "A2", "A3", "B2"]
110
+ }
111
+ }
112
+ }
113
+ ],
114
+ [
115
+ {
116
+ "polyomino": {
117
+ "lay": {
118
+ "cells": ["A1", "A2", "B1", "B2"]
119
+ }
120
+ }
121
+ }
122
+ ],
123
+ [
124
+ {
125
+ "polyomino": {
126
+ "lay": {
127
+ "cells": ["A1", "A2", "B2", "B3"]
128
+ }
129
+ }
130
+ }
131
+ ]
132
+ ]
133
+ },
134
+ "ends": [
135
+ {
136
+ "marks": {},
137
+ "polyomino": [["A1", "A2", "A3", "A4"]]
138
+ },
139
+ {
140
+ "marks": {},
141
+ "polyomino": [["A1", "A2", "A3", "B1"]]
142
+ },
143
+ {
144
+ "marks": {},
145
+ "polyomino": [["A1", "A2", "A3", "B2"]]
146
+ },
147
+ {
148
+ "marks": {},
149
+ "polyomino": [["A1", "A2", "B1", "B2"]]
150
+ },
151
+ {
152
+ "marks": {},
153
+ "polyomino": [["A1", "A2", "B2", "B3"]]
154
+ }
155
+ ]
156
+ }
157
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "description": "An invalid scene of figures: a shape whose cells are not joined by their sides, a count of cells beside the shapes and one past the most, a piece count of none, beside paint, and a goal that counts placings. The kind names every error by its JSON Pointer and gives no state.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 2,
6
+ "cols": 2
7
+ },
8
+ "operations": {
9
+ "polyomino": {
10
+ "shapes": [["A1", "B2"]],
11
+ "cells": 7,
12
+ "pieces": 0
13
+ },
14
+ "paint": {
15
+ "color": "red"
16
+ }
17
+ },
18
+ "goal": {
19
+ "polyomino_placings": {}
20
+ }
21
+ },
22
+ "seed": "0",
23
+ "sequences": [],
24
+ "proof": {
25
+ "undecided": "invalid",
26
+ "errors": [
27
+ {
28
+ "path": "/operations/polyomino/shapes/0",
29
+ "message": "cells not joined by their sides into one figure"
30
+ },
31
+ {
32
+ "path": "/operations/polyomino/cells",
33
+ "message": "a whole number from 2 to 6"
34
+ },
35
+ {
36
+ "path": "/operations/polyomino",
37
+ "message": "the shapes or a count of cells, one of them"
38
+ },
39
+ {
40
+ "path": "/operations/polyomino/pieces",
41
+ "message": "a whole number from 1 to 676"
42
+ }
43
+ ]
44
+ }
45
+ }
@@ -0,0 +1,245 @@
1
+ {
2
+ "description": "The robot of the course's task par-56-d3-3: a board of 3 by 3, a path from A1 across the sides of cells, closed back on A1 without a cell visited twice. The goal is a closed route, and the key the most cells one visits: 8, the task's key, round the edge. A step onto a visited cell, the one just left among them, is refused, and a closed route takes no more steps.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 3,
6
+ "cols": 3
7
+ },
8
+ "operations": {
9
+ "path": {
10
+ "from": "A1"
11
+ }
12
+ },
13
+ "goal": {
14
+ "path_closed": {}
15
+ }
16
+ },
17
+ "seed": "0",
18
+ "start": {
19
+ "state": {
20
+ "marks": {},
21
+ "path": ["A1"]
22
+ },
23
+ "goal": false
24
+ },
25
+ "sequences": [
26
+ [
27
+ {
28
+ "move": {
29
+ "path": {
30
+ "to": "A2"
31
+ }
32
+ },
33
+ "state": {
34
+ "marks": {},
35
+ "path": ["A1", "A2"]
36
+ },
37
+ "goal": false
38
+ },
39
+ {
40
+ "move": {
41
+ "path": {
42
+ "to": "A1"
43
+ }
44
+ },
45
+ "refused": "visited"
46
+ },
47
+ {
48
+ "move": {
49
+ "path": {
50
+ "to": "A3"
51
+ }
52
+ },
53
+ "state": {
54
+ "marks": {},
55
+ "path": ["A1", "A2", "A3"]
56
+ },
57
+ "goal": false
58
+ },
59
+ {
60
+ "move": {
61
+ "path": {
62
+ "to": "B3"
63
+ }
64
+ },
65
+ "state": {
66
+ "marks": {},
67
+ "path": ["A1", "A2", "A3", "B3"]
68
+ },
69
+ "goal": false
70
+ },
71
+ {
72
+ "move": {
73
+ "path": {
74
+ "to": "C3"
75
+ }
76
+ },
77
+ "state": {
78
+ "marks": {},
79
+ "path": ["A1", "A2", "A3", "B3", "C3"]
80
+ },
81
+ "goal": false
82
+ },
83
+ {
84
+ "move": {
85
+ "path": {
86
+ "to": "C2"
87
+ }
88
+ },
89
+ "state": {
90
+ "marks": {},
91
+ "path": ["A1", "A2", "A3", "B3", "C3", "C2"]
92
+ },
93
+ "goal": false
94
+ },
95
+ {
96
+ "move": {
97
+ "path": {
98
+ "to": "C1"
99
+ }
100
+ },
101
+ "state": {
102
+ "marks": {},
103
+ "path": ["A1", "A2", "A3", "B3", "C3", "C2", "C1"]
104
+ },
105
+ "goal": false
106
+ },
107
+ {
108
+ "move": {
109
+ "path": {
110
+ "to": "B1"
111
+ }
112
+ },
113
+ "state": {
114
+ "marks": {},
115
+ "path": ["A1", "A2", "A3", "B3", "C3", "C2", "C1", "B1"]
116
+ },
117
+ "goal": false
118
+ },
119
+ {
120
+ "move": {
121
+ "path": {
122
+ "to": "A1"
123
+ }
124
+ },
125
+ "state": {
126
+ "marks": {},
127
+ "path": ["A1", "A2", "A3", "B3", "C3", "C2", "C1", "B1", "A1"]
128
+ },
129
+ "goal": true
130
+ },
131
+ {
132
+ "move": {
133
+ "path": {
134
+ "to": "B2"
135
+ }
136
+ },
137
+ "refused": "closed"
138
+ }
139
+ ],
140
+ [
141
+ {
142
+ "move": {
143
+ "path": {
144
+ "to": "B1"
145
+ }
146
+ },
147
+ "state": {
148
+ "marks": {},
149
+ "path": ["A1", "B1"]
150
+ },
151
+ "goal": false
152
+ },
153
+ {
154
+ "move": {
155
+ "path": {
156
+ "to": "B2"
157
+ }
158
+ },
159
+ "state": {
160
+ "marks": {},
161
+ "path": ["A1", "B1", "B2"]
162
+ },
163
+ "goal": false
164
+ },
165
+ {
166
+ "move": {
167
+ "path": {
168
+ "to": "A2"
169
+ }
170
+ },
171
+ "state": {
172
+ "marks": {},
173
+ "path": ["A1", "B1", "B2", "A2"]
174
+ },
175
+ "goal": false
176
+ },
177
+ {
178
+ "move": {
179
+ "path": {
180
+ "to": "A1"
181
+ }
182
+ },
183
+ "state": {
184
+ "marks": {},
185
+ "path": ["A1", "B1", "B2", "A2", "A1"]
186
+ },
187
+ "goal": true
188
+ }
189
+ ]
190
+ ],
191
+ "proof": {
192
+ "key": 8,
193
+ "asks": "max",
194
+ "witness": {
195
+ "path": [
196
+ {
197
+ "path": {
198
+ "to": "A2"
199
+ }
200
+ },
201
+ {
202
+ "path": {
203
+ "to": "A3"
204
+ }
205
+ },
206
+ {
207
+ "path": {
208
+ "to": "B3"
209
+ }
210
+ },
211
+ {
212
+ "path": {
213
+ "to": "B2"
214
+ }
215
+ },
216
+ {
217
+ "path": {
218
+ "to": "C2"
219
+ }
220
+ },
221
+ {
222
+ "path": {
223
+ "to": "C1"
224
+ }
225
+ },
226
+ {
227
+ "path": {
228
+ "to": "B1"
229
+ }
230
+ },
231
+ {
232
+ "path": {
233
+ "to": "A1"
234
+ }
235
+ }
236
+ ]
237
+ },
238
+ "ends": [
239
+ {
240
+ "marks": {},
241
+ "path": ["A1", "A2", "A3", "B3", "B2", "C2", "C1", "B1", "A1"]
242
+ }
243
+ ]
244
+ }
245
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "description": "The course's task gaps-56-d3-2: a window of 3 rows of 4 panes, a strip along each side of each pane, two panes sharing the strip between them. The strips are the sides of the cells; the goal counts them, 31, the task's key. The sheet is only to look at, so a cut is refused.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 3,
6
+ "cols": 4
7
+ },
8
+ "operations": {},
9
+ "goal": {
10
+ "sides": {}
11
+ }
12
+ },
13
+ "seed": "0",
14
+ "start": {
15
+ "state": {
16
+ "marks": {}
17
+ },
18
+ "goal": true
19
+ },
20
+ "sequences": [
21
+ [
22
+ {
23
+ "move": {
24
+ "cut": {
25
+ "side": "h1:1"
26
+ }
27
+ },
28
+ "refused": "op-not-in-scene"
29
+ }
30
+ ]
31
+ ],
32
+ "proof": {
33
+ "key": 31,
34
+ "asks": "max",
35
+ "witness": {
36
+ "path": []
37
+ },
38
+ "ends": [
39
+ {
40
+ "marks": {}
41
+ }
42
+ ]
43
+ }
44
+ }