@altnovatrail/widgets 0.2.1 → 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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/cores/vector.schema.json +22 -1
  3. package/kinds/cards/cards.handles.json +109 -0
  4. package/kinds/cards/cards.schema.json +483 -0
  5. package/kinds/cards/vectors/any.json +255 -0
  6. package/kinds/cards/vectors/box.json +325 -0
  7. package/kinds/cards/vectors/fork-taps.json +305 -0
  8. package/kinds/cards/vectors/fork.json +254 -0
  9. package/kinds/cards/vectors/invalid-goal.json +70 -0
  10. package/kinds/cards/vectors/invalid-ids.json +113 -0
  11. package/kinds/cards/vectors/invalid-schema.json +88 -0
  12. package/kinds/cards/vectors/invalid-taps.json +214 -0
  13. package/kinds/cards/vectors/key.json +264 -0
  14. package/kinds/cards/vectors/limit.json +274 -0
  15. package/kinds/cards/vectors/no-goal.json +205 -0
  16. package/kinds/cards/vectors/none.json +239 -0
  17. package/kinds/cards/vectors/recog.json +113 -0
  18. package/kinds/cards/vectors/riddle.json +397 -0
  19. package/kinds/cards/vectors/solo.json +218 -0
  20. package/kinds/cells/cells.schema.json +17 -2
  21. package/kinds/line/line.schema.json +17 -2
  22. package/lib/cores/kind.d.ts +21 -3
  23. package/lib/cores/search.d.ts +22 -6
  24. package/lib/cores/search.js +34 -6
  25. package/lib/kinds/cards/goal.d.ts +25 -0
  26. package/lib/kinds/cards/goal.js +72 -0
  27. package/lib/kinds/cards/index.d.ts +14 -0
  28. package/lib/kinds/cards/index.js +17 -0
  29. package/lib/kinds/cards/kind.d.ts +23 -0
  30. package/lib/kinds/cards/kind.js +101 -0
  31. package/lib/kinds/cards/parts.d.ts +36 -0
  32. package/lib/kinds/cards/parts.js +34 -0
  33. package/lib/kinds/cards/scene.d.ts +102 -0
  34. package/lib/kinds/cards/scene.js +356 -0
  35. package/lib/kinds/cards/schema.d.ts +10 -0
  36. package/lib/kinds/cards/schema.js +285 -0
  37. package/lib/kinds/cells/registry.js +1 -1
  38. package/lib/kinds/cells/schema.js +3 -1
  39. package/lib/kinds/line/registry.js +1 -1
  40. package/lib/kinds/line/schema.js +3 -1
  41. package/package.json +8 -3
  42. package/cores/handles.schema.json +0 -63
@@ -0,0 +1,305 @@
1
+ {
2
+ "description": "The fork with taps that choose many: the state meets the goal while it holds A and B and nothing more, and a second tap lets a card go.",
3
+ "scene": {
4
+ "signs": [
5
+ {
6
+ "id": "colour",
7
+ "label": "colour",
8
+ "values": [
9
+ {
10
+ "id": "blue",
11
+ "label": "blue"
12
+ },
13
+ {
14
+ "id": "pink",
15
+ "label": "pink"
16
+ },
17
+ {
18
+ "id": "yellow",
19
+ "label": "yellow"
20
+ },
21
+ {
22
+ "id": "purple",
23
+ "label": "purple"
24
+ },
25
+ {
26
+ "id": "green",
27
+ "label": "green"
28
+ },
29
+ {
30
+ "id": "orange",
31
+ "label": "orange"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "id": "pattern",
37
+ "label": "pattern",
38
+ "values": [
39
+ {
40
+ "id": "plain",
41
+ "label": "plain"
42
+ },
43
+ {
44
+ "id": "stripes",
45
+ "label": "stripes"
46
+ },
47
+ {
48
+ "id": "spots",
49
+ "label": "spots"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "id": "eyes",
55
+ "label": "eyes",
56
+ "values": [
57
+ {
58
+ "id": "1",
59
+ "label": "one eye"
60
+ },
61
+ {
62
+ "id": "2",
63
+ "label": "two eyes"
64
+ },
65
+ {
66
+ "id": "3",
67
+ "label": "three eyes"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "id": "horns",
73
+ "label": "horns",
74
+ "values": [
75
+ {
76
+ "id": "no",
77
+ "label": "no horns"
78
+ },
79
+ {
80
+ "id": "yes",
81
+ "label": "horns"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "id": "hat",
87
+ "label": "hat",
88
+ "values": [
89
+ {
90
+ "id": "no",
91
+ "label": "no hat"
92
+ },
93
+ {
94
+ "id": "yes",
95
+ "label": "a hat"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "id": "legs",
101
+ "label": "legs",
102
+ "values": [
103
+ {
104
+ "id": "2",
105
+ "label": "two legs"
106
+ },
107
+ {
108
+ "id": "3",
109
+ "label": "three legs"
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "groups": [
115
+ {
116
+ "id": "cards",
117
+ "cards": [
118
+ {
119
+ "id": "A",
120
+ "signs": {
121
+ "colour": "orange",
122
+ "pattern": "spots",
123
+ "eyes": "2",
124
+ "horns": "no",
125
+ "hat": "no",
126
+ "legs": "2"
127
+ }
128
+ },
129
+ {
130
+ "id": "B",
131
+ "signs": {
132
+ "colour": "blue",
133
+ "pattern": "spots",
134
+ "eyes": "2",
135
+ "horns": "no",
136
+ "hat": "no",
137
+ "legs": "2"
138
+ }
139
+ },
140
+ {
141
+ "id": "C",
142
+ "signs": {
143
+ "colour": "pink",
144
+ "pattern": "spots",
145
+ "eyes": "1",
146
+ "horns": "no",
147
+ "hat": "no",
148
+ "legs": "2"
149
+ }
150
+ },
151
+ {
152
+ "id": "D",
153
+ "signs": {
154
+ "colour": "green",
155
+ "pattern": "stripes",
156
+ "eyes": "2",
157
+ "horns": "no",
158
+ "hat": "no",
159
+ "legs": "2"
160
+ }
161
+ },
162
+ {
163
+ "id": "E",
164
+ "signs": {
165
+ "colour": "yellow",
166
+ "pattern": "stripes",
167
+ "eyes": "2",
168
+ "horns": "no",
169
+ "hat": "no",
170
+ "legs": "2"
171
+ }
172
+ },
173
+ {
174
+ "id": "F",
175
+ "signs": {
176
+ "colour": "purple",
177
+ "pattern": "stripes",
178
+ "eyes": "3",
179
+ "horns": "no",
180
+ "hat": "no",
181
+ "legs": "2"
182
+ }
183
+ }
184
+ ]
185
+ }
186
+ ],
187
+ "choose": {
188
+ "many": true
189
+ },
190
+ "goal": {
191
+ "signs": {
192
+ "all": [
193
+ {
194
+ "sign": "pattern",
195
+ "is": "spots"
196
+ },
197
+ {
198
+ "sign": "eyes",
199
+ "is": "2"
200
+ }
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ "seed": "0",
206
+ "start": {
207
+ "state": {
208
+ "chosen": []
209
+ },
210
+ "goal": false
211
+ },
212
+ "sequences": [
213
+ [
214
+ {
215
+ "move": {
216
+ "choose": "A"
217
+ },
218
+ "state": {
219
+ "chosen": ["A"]
220
+ },
221
+ "goal": false
222
+ },
223
+ {
224
+ "move": {
225
+ "choose": "B"
226
+ },
227
+ "state": {
228
+ "chosen": ["A", "B"]
229
+ },
230
+ "goal": true
231
+ },
232
+ {
233
+ "move": {
234
+ "choose": "C"
235
+ },
236
+ "state": {
237
+ "chosen": ["A", "B", "C"]
238
+ },
239
+ "goal": false
240
+ },
241
+ {
242
+ "move": {
243
+ "choose": "C"
244
+ },
245
+ "state": {
246
+ "chosen": ["A", "B"]
247
+ },
248
+ "goal": true
249
+ },
250
+ {
251
+ "move": {
252
+ "choose": "A"
253
+ },
254
+ "state": {
255
+ "chosen": ["B"]
256
+ },
257
+ "goal": false
258
+ }
259
+ ]
260
+ ],
261
+ "proof": {
262
+ "key": ["A", "B"],
263
+ "asks": "parts",
264
+ "witness": {
265
+ "rule": {
266
+ "all": [
267
+ {
268
+ "sign": "pattern",
269
+ "is": "spots"
270
+ },
271
+ {
272
+ "sign": "eyes",
273
+ "is": "2"
274
+ }
275
+ ]
276
+ },
277
+ "rows": [
278
+ {
279
+ "card": "A",
280
+ "fits": [true, true]
281
+ },
282
+ {
283
+ "card": "B",
284
+ "fits": [true, true]
285
+ },
286
+ {
287
+ "card": "C",
288
+ "fits": [true, false]
289
+ },
290
+ {
291
+ "card": "D",
292
+ "fits": [false, true]
293
+ },
294
+ {
295
+ "card": "E",
296
+ "fits": [false, true]
297
+ },
298
+ {
299
+ "card": "F",
300
+ "fits": [false, false]
301
+ }
302
+ ]
303
+ }
304
+ }
305
+ }
@@ -0,0 +1,254 @@
1
+ {
2
+ "description": "The fork of the lesson on signs: six creatures to circle with the pen; A and B have spots and two eyes, and C, spotted with one eye, is the trap.",
3
+ "scene": {
4
+ "signs": [
5
+ {
6
+ "id": "colour",
7
+ "label": "colour",
8
+ "values": [
9
+ {
10
+ "id": "blue",
11
+ "label": "blue"
12
+ },
13
+ {
14
+ "id": "pink",
15
+ "label": "pink"
16
+ },
17
+ {
18
+ "id": "yellow",
19
+ "label": "yellow"
20
+ },
21
+ {
22
+ "id": "purple",
23
+ "label": "purple"
24
+ },
25
+ {
26
+ "id": "green",
27
+ "label": "green"
28
+ },
29
+ {
30
+ "id": "orange",
31
+ "label": "orange"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "id": "pattern",
37
+ "label": "pattern",
38
+ "values": [
39
+ {
40
+ "id": "plain",
41
+ "label": "plain"
42
+ },
43
+ {
44
+ "id": "stripes",
45
+ "label": "stripes"
46
+ },
47
+ {
48
+ "id": "spots",
49
+ "label": "spots"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "id": "eyes",
55
+ "label": "eyes",
56
+ "values": [
57
+ {
58
+ "id": "1",
59
+ "label": "one eye"
60
+ },
61
+ {
62
+ "id": "2",
63
+ "label": "two eyes"
64
+ },
65
+ {
66
+ "id": "3",
67
+ "label": "three eyes"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "id": "horns",
73
+ "label": "horns",
74
+ "values": [
75
+ {
76
+ "id": "no",
77
+ "label": "no horns"
78
+ },
79
+ {
80
+ "id": "yes",
81
+ "label": "horns"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "id": "hat",
87
+ "label": "hat",
88
+ "values": [
89
+ {
90
+ "id": "no",
91
+ "label": "no hat"
92
+ },
93
+ {
94
+ "id": "yes",
95
+ "label": "a hat"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "id": "legs",
101
+ "label": "legs",
102
+ "values": [
103
+ {
104
+ "id": "2",
105
+ "label": "two legs"
106
+ },
107
+ {
108
+ "id": "3",
109
+ "label": "three legs"
110
+ }
111
+ ]
112
+ }
113
+ ],
114
+ "groups": [
115
+ {
116
+ "id": "cards",
117
+ "cards": [
118
+ {
119
+ "id": "A",
120
+ "signs": {
121
+ "colour": "orange",
122
+ "pattern": "spots",
123
+ "eyes": "2",
124
+ "horns": "no",
125
+ "hat": "no",
126
+ "legs": "2"
127
+ }
128
+ },
129
+ {
130
+ "id": "B",
131
+ "signs": {
132
+ "colour": "blue",
133
+ "pattern": "spots",
134
+ "eyes": "2",
135
+ "horns": "no",
136
+ "hat": "no",
137
+ "legs": "2"
138
+ }
139
+ },
140
+ {
141
+ "id": "C",
142
+ "signs": {
143
+ "colour": "pink",
144
+ "pattern": "spots",
145
+ "eyes": "1",
146
+ "horns": "no",
147
+ "hat": "no",
148
+ "legs": "2"
149
+ }
150
+ },
151
+ {
152
+ "id": "D",
153
+ "signs": {
154
+ "colour": "green",
155
+ "pattern": "stripes",
156
+ "eyes": "2",
157
+ "horns": "no",
158
+ "hat": "no",
159
+ "legs": "2"
160
+ }
161
+ },
162
+ {
163
+ "id": "E",
164
+ "signs": {
165
+ "colour": "yellow",
166
+ "pattern": "stripes",
167
+ "eyes": "2",
168
+ "horns": "no",
169
+ "hat": "no",
170
+ "legs": "2"
171
+ }
172
+ },
173
+ {
174
+ "id": "F",
175
+ "signs": {
176
+ "colour": "purple",
177
+ "pattern": "stripes",
178
+ "eyes": "3",
179
+ "horns": "no",
180
+ "hat": "no",
181
+ "legs": "2"
182
+ }
183
+ }
184
+ ]
185
+ }
186
+ ],
187
+ "goal": {
188
+ "signs": {
189
+ "all": [
190
+ {
191
+ "sign": "pattern",
192
+ "is": "spots"
193
+ },
194
+ {
195
+ "sign": "eyes",
196
+ "is": "2"
197
+ }
198
+ ]
199
+ }
200
+ }
201
+ },
202
+ "seed": "0",
203
+ "start": {
204
+ "state": {
205
+ "chosen": []
206
+ },
207
+ "goal": false
208
+ },
209
+ "sequences": [],
210
+ "proof": {
211
+ "key": ["A", "B"],
212
+ "asks": "parts",
213
+ "witness": {
214
+ "rule": {
215
+ "all": [
216
+ {
217
+ "sign": "pattern",
218
+ "is": "spots"
219
+ },
220
+ {
221
+ "sign": "eyes",
222
+ "is": "2"
223
+ }
224
+ ]
225
+ },
226
+ "rows": [
227
+ {
228
+ "card": "A",
229
+ "fits": [true, true]
230
+ },
231
+ {
232
+ "card": "B",
233
+ "fits": [true, true]
234
+ },
235
+ {
236
+ "card": "C",
237
+ "fits": [true, false]
238
+ },
239
+ {
240
+ "card": "D",
241
+ "fits": [false, true]
242
+ },
243
+ {
244
+ "card": "E",
245
+ "fits": [false, true]
246
+ },
247
+ {
248
+ "card": "F",
249
+ "fits": [false, false]
250
+ }
251
+ ]
252
+ }
253
+ }
254
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "description": "A goal the kind refuses: a group whose cards share no value, which teaches no rule.",
3
+ "scene": {
4
+ "signs": [
5
+ {
6
+ "id": "colour",
7
+ "label": "colour",
8
+ "values": [
9
+ {
10
+ "id": "blue",
11
+ "label": "blue"
12
+ },
13
+ {
14
+ "id": "pink",
15
+ "label": "pink"
16
+ },
17
+ {
18
+ "id": "yellow",
19
+ "label": "yellow"
20
+ },
21
+ {
22
+ "id": "purple",
23
+ "label": "purple"
24
+ },
25
+ {
26
+ "id": "green",
27
+ "label": "green"
28
+ },
29
+ {
30
+ "id": "orange",
31
+ "label": "orange"
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ "groups": [
37
+ {
38
+ "id": "mixed",
39
+ "cards": [
40
+ {
41
+ "id": "A",
42
+ "signs": {
43
+ "colour": "blue"
44
+ }
45
+ },
46
+ {
47
+ "id": "B",
48
+ "signs": {
49
+ "colour": "pink"
50
+ }
51
+ }
52
+ ]
53
+ }
54
+ ],
55
+ "goal": {
56
+ "like": "mixed"
57
+ }
58
+ },
59
+ "seed": "0",
60
+ "sequences": [],
61
+ "proof": {
62
+ "undecided": "invalid",
63
+ "errors": [
64
+ {
65
+ "path": "/goal/like",
66
+ "message": "a group whose cards share a value of some sign"
67
+ }
68
+ ]
69
+ }
70
+ }