@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,274 @@
1
+ {
2
+ "description": "Taps that choose many among twelve cards: every set of them is a state, 4,096, past the limit of states.",
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": "blue",
122
+ "pattern": "plain",
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": "plain",
134
+ "eyes": "2",
135
+ "horns": "no",
136
+ "hat": "no",
137
+ "legs": "2"
138
+ }
139
+ },
140
+ {
141
+ "id": "c",
142
+ "signs": {
143
+ "colour": "blue",
144
+ "pattern": "plain",
145
+ "eyes": "2",
146
+ "horns": "no",
147
+ "hat": "no",
148
+ "legs": "2"
149
+ }
150
+ },
151
+ {
152
+ "id": "d",
153
+ "signs": {
154
+ "colour": "blue",
155
+ "pattern": "plain",
156
+ "eyes": "2",
157
+ "horns": "no",
158
+ "hat": "no",
159
+ "legs": "2"
160
+ }
161
+ },
162
+ {
163
+ "id": "e",
164
+ "signs": {
165
+ "colour": "blue",
166
+ "pattern": "plain",
167
+ "eyes": "2",
168
+ "horns": "no",
169
+ "hat": "no",
170
+ "legs": "2"
171
+ }
172
+ },
173
+ {
174
+ "id": "f",
175
+ "signs": {
176
+ "colour": "blue",
177
+ "pattern": "plain",
178
+ "eyes": "2",
179
+ "horns": "no",
180
+ "hat": "no",
181
+ "legs": "2"
182
+ }
183
+ },
184
+ {
185
+ "id": "g",
186
+ "signs": {
187
+ "colour": "blue",
188
+ "pattern": "plain",
189
+ "eyes": "2",
190
+ "horns": "no",
191
+ "hat": "no",
192
+ "legs": "2"
193
+ }
194
+ },
195
+ {
196
+ "id": "h",
197
+ "signs": {
198
+ "colour": "blue",
199
+ "pattern": "plain",
200
+ "eyes": "2",
201
+ "horns": "no",
202
+ "hat": "no",
203
+ "legs": "2"
204
+ }
205
+ },
206
+ {
207
+ "id": "i",
208
+ "signs": {
209
+ "colour": "blue",
210
+ "pattern": "plain",
211
+ "eyes": "2",
212
+ "horns": "no",
213
+ "hat": "no",
214
+ "legs": "2"
215
+ }
216
+ },
217
+ {
218
+ "id": "j",
219
+ "signs": {
220
+ "colour": "blue",
221
+ "pattern": "plain",
222
+ "eyes": "2",
223
+ "horns": "no",
224
+ "hat": "no",
225
+ "legs": "2"
226
+ }
227
+ },
228
+ {
229
+ "id": "k",
230
+ "signs": {
231
+ "colour": "blue",
232
+ "pattern": "plain",
233
+ "eyes": "2",
234
+ "horns": "no",
235
+ "hat": "no",
236
+ "legs": "2"
237
+ }
238
+ },
239
+ {
240
+ "id": "l",
241
+ "signs": {
242
+ "colour": "blue",
243
+ "pattern": "plain",
244
+ "eyes": "2",
245
+ "horns": "no",
246
+ "hat": "no",
247
+ "legs": "2"
248
+ }
249
+ }
250
+ ]
251
+ }
252
+ ],
253
+ "choose": {
254
+ "many": true
255
+ },
256
+ "goal": {
257
+ "signs": {
258
+ "sign": "colour",
259
+ "is": "blue"
260
+ }
261
+ }
262
+ },
263
+ "seed": "0",
264
+ "start": {
265
+ "state": {
266
+ "chosen": []
267
+ },
268
+ "goal": false
269
+ },
270
+ "sequences": [],
271
+ "proof": {
272
+ "undecided": "limit"
273
+ }
274
+ }
@@ -0,0 +1,205 @@
1
+ {
2
+ "description": "Cards and the table of signs with no goal, only to look at and fill with the pen: nothing to prove.",
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": "green",
122
+ "pattern": "plain",
123
+ "eyes": "2",
124
+ "horns": "yes",
125
+ "hat": "yes",
126
+ "legs": "2"
127
+ }
128
+ },
129
+ {
130
+ "id": "B",
131
+ "signs": {
132
+ "colour": "blue",
133
+ "pattern": "plain",
134
+ "eyes": "2",
135
+ "horns": "yes",
136
+ "hat": "no",
137
+ "legs": "2"
138
+ }
139
+ },
140
+ {
141
+ "id": "C",
142
+ "signs": {
143
+ "colour": "pink",
144
+ "pattern": "plain",
145
+ "eyes": "2",
146
+ "horns": "no",
147
+ "hat": "yes",
148
+ "legs": "2"
149
+ }
150
+ },
151
+ {
152
+ "id": "D",
153
+ "signs": {
154
+ "colour": "yellow",
155
+ "pattern": "plain",
156
+ "eyes": "2",
157
+ "horns": "no",
158
+ "hat": "no",
159
+ "legs": "2"
160
+ }
161
+ },
162
+ {
163
+ "id": "E",
164
+ "signs": {
165
+ "colour": "purple",
166
+ "pattern": "plain",
167
+ "eyes": "2",
168
+ "horns": "yes",
169
+ "hat": "yes",
170
+ "legs": "2"
171
+ }
172
+ }
173
+ ]
174
+ }
175
+ ],
176
+ "table": {
177
+ "rows": ["cards"],
178
+ "columns": [
179
+ {
180
+ "id": "horns",
181
+ "label": "horns",
182
+ "sign": "horns",
183
+ "is": "yes"
184
+ },
185
+ {
186
+ "id": "no-hat",
187
+ "label": "no hat",
188
+ "sign": "hat",
189
+ "is": "no"
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ "seed": "0",
195
+ "start": {
196
+ "state": {
197
+ "chosen": []
198
+ },
199
+ "goal": false
200
+ },
201
+ "sequences": [],
202
+ "proof": {
203
+ "undecided": "no-goal"
204
+ }
205
+ }
@@ -0,0 +1,239 @@
1
+ {
2
+ "description": "No card meets the goal, horns and three legs, on a scene for the pen: the key is no card, and no state meets it, as none of a scene only for the pen does.",
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": "green",
122
+ "pattern": "plain",
123
+ "eyes": "2",
124
+ "horns": "yes",
125
+ "hat": "yes",
126
+ "legs": "2"
127
+ }
128
+ },
129
+ {
130
+ "id": "B",
131
+ "signs": {
132
+ "colour": "blue",
133
+ "pattern": "plain",
134
+ "eyes": "2",
135
+ "horns": "yes",
136
+ "hat": "no",
137
+ "legs": "2"
138
+ }
139
+ },
140
+ {
141
+ "id": "C",
142
+ "signs": {
143
+ "colour": "pink",
144
+ "pattern": "plain",
145
+ "eyes": "2",
146
+ "horns": "no",
147
+ "hat": "yes",
148
+ "legs": "2"
149
+ }
150
+ },
151
+ {
152
+ "id": "D",
153
+ "signs": {
154
+ "colour": "yellow",
155
+ "pattern": "plain",
156
+ "eyes": "2",
157
+ "horns": "no",
158
+ "hat": "no",
159
+ "legs": "2"
160
+ }
161
+ },
162
+ {
163
+ "id": "E",
164
+ "signs": {
165
+ "colour": "purple",
166
+ "pattern": "plain",
167
+ "eyes": "2",
168
+ "horns": "yes",
169
+ "hat": "yes",
170
+ "legs": "2"
171
+ }
172
+ }
173
+ ]
174
+ }
175
+ ],
176
+ "goal": {
177
+ "signs": {
178
+ "all": [
179
+ {
180
+ "sign": "horns",
181
+ "is": "yes"
182
+ },
183
+ {
184
+ "sign": "legs",
185
+ "is": "3"
186
+ }
187
+ ]
188
+ }
189
+ }
190
+ },
191
+ "seed": "0",
192
+ "start": {
193
+ "state": {
194
+ "chosen": []
195
+ },
196
+ "goal": false
197
+ },
198
+ "sequences": [],
199
+ "proof": {
200
+ "key": [],
201
+ "asks": "parts",
202
+ "witness": {
203
+ "rule": {
204
+ "all": [
205
+ {
206
+ "sign": "horns",
207
+ "is": "yes"
208
+ },
209
+ {
210
+ "sign": "legs",
211
+ "is": "3"
212
+ }
213
+ ]
214
+ },
215
+ "rows": [
216
+ {
217
+ "card": "A",
218
+ "fits": [true, false]
219
+ },
220
+ {
221
+ "card": "B",
222
+ "fits": [true, false]
223
+ },
224
+ {
225
+ "card": "C",
226
+ "fits": [false, false]
227
+ },
228
+ {
229
+ "card": "D",
230
+ "fits": [false, false]
231
+ },
232
+ {
233
+ "card": "E",
234
+ "fits": [true, false]
235
+ }
236
+ ]
237
+ }
238
+ }
239
+ }