@altnovatrail/widgets 0.2.0 → 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.
- package/README.md +1 -1
- package/cores/vector.schema.json +22 -1
- package/kinds/cards/cards.handles.json +109 -0
- package/kinds/cards/cards.schema.json +483 -0
- package/kinds/cards/vectors/any.json +255 -0
- package/kinds/cards/vectors/box.json +325 -0
- package/kinds/cards/vectors/fork-taps.json +305 -0
- package/kinds/cards/vectors/fork.json +254 -0
- package/kinds/cards/vectors/invalid-goal.json +70 -0
- package/kinds/cards/vectors/invalid-ids.json +113 -0
- package/kinds/cards/vectors/invalid-schema.json +88 -0
- package/kinds/cards/vectors/invalid-taps.json +214 -0
- package/kinds/cards/vectors/key.json +264 -0
- package/kinds/cards/vectors/limit.json +274 -0
- package/kinds/cards/vectors/no-goal.json +205 -0
- package/kinds/cards/vectors/none.json +239 -0
- package/kinds/cards/vectors/recog.json +113 -0
- package/kinds/cards/vectors/riddle.json +397 -0
- package/kinds/cards/vectors/solo.json +218 -0
- package/kinds/cells/cells.schema.json +17 -2
- package/kinds/line/line.handles.json +195 -0
- package/kinds/line/line.schema.json +336 -0
- package/kinds/line/vectors/cases.json +213 -0
- package/kinds/line/vectors/gaps-12-d1-1.json +140 -0
- package/kinds/line/vectors/gaps-12-d1-2.json +95 -0
- package/kinds/line/vectors/gaps-12-d1-3.json +122 -0
- package/kinds/line/vectors/gaps-12-d1-4.json +121 -0
- package/kinds/line/vectors/gaps-12-d1-5.json +87 -0
- package/kinds/line/vectors/gaps-12-d2-1.json +173 -0
- package/kinds/line/vectors/gaps-12-d2-6.json +87 -0
- package/kinds/line/vectors/gaps-12-d3-2.json +173 -0
- package/kinds/line/vectors/gaps-12-d4-4.json +168 -0
- package/kinds/line/vectors/gaps-12-d5-3.json +99 -0
- package/kinds/line/vectors/gaps-12-d5-4.json +215 -0
- package/kinds/line/vectors/gaps-34-d1-1.json +37 -0
- package/kinds/line/vectors/gaps-34-d1-2.json +130 -0
- package/kinds/line/vectors/gaps-34-d1-4.json +155 -0
- package/kinds/line/vectors/gaps-34-d1-5.json +43 -0
- package/kinds/line/vectors/gaps-34-d3-2.json +38 -0
- package/kinds/line/vectors/gaps-34-d3-5.json +177 -0
- package/kinds/line/vectors/gaps-34-d5-3.json +39 -0
- package/kinds/line/vectors/invalid-line.json +34 -0
- package/kinds/line/vectors/invalid-ring.json +34 -0
- package/kinds/line/vectors/invalid.json +43 -0
- package/kinds/line/vectors/jump-unreachable.json +104 -0
- package/kinds/line/vectors/limit.json +40 -0
- package/kinds/line/vectors/op-not-in-scene.json +47 -0
- package/kinds/line/vectors/ring-cut.json +104 -0
- package/kinds/line/vectors/ring-every.json +107 -0
- package/kinds/line/vectors/ring-jump.json +135 -0
- package/lib/cores/arith.d.ts +62 -0
- package/lib/cores/arith.js +197 -0
- package/lib/cores/kind.d.ts +31 -3
- package/lib/cores/registry.d.ts +43 -0
- package/lib/cores/registry.js +87 -0
- package/lib/cores/search.d.ts +22 -6
- package/lib/cores/search.js +70 -14
- package/lib/kinds/cards/goal.d.ts +25 -0
- package/lib/kinds/cards/goal.js +72 -0
- package/lib/kinds/cards/index.d.ts +14 -0
- package/lib/kinds/cards/index.js +17 -0
- package/lib/kinds/cards/kind.d.ts +23 -0
- package/lib/kinds/cards/kind.js +101 -0
- package/lib/kinds/cards/parts.d.ts +36 -0
- package/lib/kinds/cards/parts.js +34 -0
- package/lib/kinds/cards/scene.d.ts +102 -0
- package/lib/kinds/cards/scene.js +356 -0
- package/lib/kinds/cards/schema.d.ts +10 -0
- package/lib/kinds/cards/schema.js +285 -0
- package/lib/kinds/cells/kind.js +11 -64
- package/lib/kinds/cells/operation.d.ts +6 -0
- package/lib/kinds/cells/polyomino.d.ts +14 -0
- package/lib/kinds/cells/polyomino.js +100 -24
- package/lib/kinds/cells/registry.js +1 -1
- package/lib/kinds/cells/schema.js +3 -1
- package/lib/kinds/line/cut.d.ts +2 -0
- package/lib/kinds/line/cut.js +63 -0
- package/lib/kinds/line/goals.d.ts +22 -0
- package/lib/kinds/line/goals.js +137 -0
- package/lib/kinds/line/index.d.ts +13 -0
- package/lib/kinds/line/index.js +17 -0
- package/lib/kinds/line/jump.d.ts +10 -0
- package/lib/kinds/line/jump.js +95 -0
- package/lib/kinds/line/kind.d.ts +25 -0
- package/lib/kinds/line/kind.js +125 -0
- package/lib/kinds/line/line.d.ts +63 -0
- package/lib/kinds/line/line.js +157 -0
- package/lib/kinds/line/operation.d.ts +69 -0
- package/lib/kinds/line/operation.js +1 -0
- package/lib/kinds/line/posts.d.ts +11 -0
- package/lib/kinds/line/posts.js +85 -0
- package/lib/kinds/line/registry.d.ts +2 -0
- package/lib/kinds/line/registry.js +11 -0
- package/lib/kinds/line/schema.d.ts +4 -0
- package/lib/kinds/line/schema.js +159 -0
- package/package.json +16 -4
- package/cores/handles.schema.json +0 -63
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d1-2: a log 12 metres long is sawn into pieces 2 metres long; how many cuts? The log's places are 2 metres apart, 0 to 6, and the fewest cuts that leave its 6 pieces are 5.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 7,
|
|
6
|
+
"first": 0,
|
|
7
|
+
"spacing": 2
|
|
8
|
+
},
|
|
9
|
+
"operations": {
|
|
10
|
+
"cut": {}
|
|
11
|
+
},
|
|
12
|
+
"goal": {
|
|
13
|
+
"counters": {
|
|
14
|
+
"is": {
|
|
15
|
+
"pieces": 6
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"seed": "0",
|
|
21
|
+
"start": {
|
|
22
|
+
"state": {
|
|
23
|
+
"posts": [],
|
|
24
|
+
"cuts": []
|
|
25
|
+
},
|
|
26
|
+
"goal": false
|
|
27
|
+
},
|
|
28
|
+
"sequences": [
|
|
29
|
+
[
|
|
30
|
+
{
|
|
31
|
+
"move": {
|
|
32
|
+
"cut": {
|
|
33
|
+
"at": 1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"state": {
|
|
37
|
+
"posts": [],
|
|
38
|
+
"cuts": [1]
|
|
39
|
+
},
|
|
40
|
+
"goal": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"move": {
|
|
44
|
+
"cut": {
|
|
45
|
+
"at": 2
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"state": {
|
|
49
|
+
"posts": [],
|
|
50
|
+
"cuts": [1, 2]
|
|
51
|
+
},
|
|
52
|
+
"goal": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"move": {
|
|
56
|
+
"cut": {
|
|
57
|
+
"at": 3
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"state": {
|
|
61
|
+
"posts": [],
|
|
62
|
+
"cuts": [1, 2, 3]
|
|
63
|
+
},
|
|
64
|
+
"goal": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"move": {
|
|
68
|
+
"cut": {
|
|
69
|
+
"at": 4
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"state": {
|
|
73
|
+
"posts": [],
|
|
74
|
+
"cuts": [1, 2, 3, 4]
|
|
75
|
+
},
|
|
76
|
+
"goal": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"move": {
|
|
80
|
+
"cut": {
|
|
81
|
+
"at": 5
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"state": {
|
|
85
|
+
"posts": [],
|
|
86
|
+
"cuts": [1, 2, 3, 4, 5]
|
|
87
|
+
},
|
|
88
|
+
"goal": true
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
],
|
|
92
|
+
"proof": {
|
|
93
|
+
"key": 5,
|
|
94
|
+
"witness": {
|
|
95
|
+
"path": [
|
|
96
|
+
{
|
|
97
|
+
"cut": {
|
|
98
|
+
"at": 1
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"cut": {
|
|
103
|
+
"at": 2
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"cut": {
|
|
108
|
+
"at": 3
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"cut": {
|
|
113
|
+
"at": 4
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"cut": {
|
|
118
|
+
"at": 5
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"ends": [
|
|
124
|
+
{
|
|
125
|
+
"posts": [],
|
|
126
|
+
"cuts": [1, 2, 3, 4, 5]
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d1-4, on an upright line: each flight between two floors has 18 steps; how many steps from floor 1 to floor 9? The floors are 18 steps apart, and the key is the distance of the climber on floor 9 from floor 1, 144: 8 flights, not 9.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 9,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"spacing": 18,
|
|
8
|
+
"vertical": true
|
|
9
|
+
},
|
|
10
|
+
"operations": {
|
|
11
|
+
"jump": {
|
|
12
|
+
"from": 1,
|
|
13
|
+
"step": 1
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"goal": {
|
|
17
|
+
"counters": {
|
|
18
|
+
"is": {
|
|
19
|
+
"at": 9
|
|
20
|
+
},
|
|
21
|
+
"max": "distance"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"seed": "0",
|
|
26
|
+
"start": {
|
|
27
|
+
"state": {
|
|
28
|
+
"posts": [],
|
|
29
|
+
"at": 1
|
|
30
|
+
},
|
|
31
|
+
"goal": false
|
|
32
|
+
},
|
|
33
|
+
"sequences": [
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
"move": {
|
|
37
|
+
"jump": "forward"
|
|
38
|
+
},
|
|
39
|
+
"state": {
|
|
40
|
+
"posts": [],
|
|
41
|
+
"at": 2
|
|
42
|
+
},
|
|
43
|
+
"goal": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"move": {
|
|
47
|
+
"jump": "forward"
|
|
48
|
+
},
|
|
49
|
+
"state": {
|
|
50
|
+
"posts": [],
|
|
51
|
+
"at": 3
|
|
52
|
+
},
|
|
53
|
+
"goal": false
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"move": {
|
|
57
|
+
"jump": "forward"
|
|
58
|
+
},
|
|
59
|
+
"state": {
|
|
60
|
+
"posts": [],
|
|
61
|
+
"at": 4
|
|
62
|
+
},
|
|
63
|
+
"goal": false
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"move": {
|
|
67
|
+
"jump": "forward"
|
|
68
|
+
},
|
|
69
|
+
"state": {
|
|
70
|
+
"posts": [],
|
|
71
|
+
"at": 5
|
|
72
|
+
},
|
|
73
|
+
"goal": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"move": {
|
|
77
|
+
"jump": "forward"
|
|
78
|
+
},
|
|
79
|
+
"state": {
|
|
80
|
+
"posts": [],
|
|
81
|
+
"at": 6
|
|
82
|
+
},
|
|
83
|
+
"goal": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"move": {
|
|
87
|
+
"jump": "forward"
|
|
88
|
+
},
|
|
89
|
+
"state": {
|
|
90
|
+
"posts": [],
|
|
91
|
+
"at": 7
|
|
92
|
+
},
|
|
93
|
+
"goal": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"move": {
|
|
97
|
+
"jump": "forward"
|
|
98
|
+
},
|
|
99
|
+
"state": {
|
|
100
|
+
"posts": [],
|
|
101
|
+
"at": 8
|
|
102
|
+
},
|
|
103
|
+
"goal": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"move": {
|
|
107
|
+
"jump": "forward"
|
|
108
|
+
},
|
|
109
|
+
"state": {
|
|
110
|
+
"posts": [],
|
|
111
|
+
"at": 9
|
|
112
|
+
},
|
|
113
|
+
"goal": true
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
],
|
|
117
|
+
"proof": {
|
|
118
|
+
"key": 144,
|
|
119
|
+
"asks": "max",
|
|
120
|
+
"witness": {
|
|
121
|
+
"path": [
|
|
122
|
+
{
|
|
123
|
+
"jump": "forward"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"jump": "forward"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"jump": "forward"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"jump": "forward"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"jump": "forward"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"jump": "forward"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"jump": "forward"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"jump": "forward"
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"ends": [
|
|
149
|
+
{
|
|
150
|
+
"posts": [],
|
|
151
|
+
"at": 9
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d1-5: a closed necklace of 24 beads, a gold ring between every two neighbouring beads; how many rings? A ring only to look at, a bead on each of its 24 places, and the key is its gaps, 24.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 24,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"closed": true,
|
|
8
|
+
"posts": [
|
|
9
|
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"operations": {},
|
|
13
|
+
"goal": {
|
|
14
|
+
"counters": {
|
|
15
|
+
"max": "gaps"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"seed": "0",
|
|
20
|
+
"start": {
|
|
21
|
+
"state": {
|
|
22
|
+
"posts": [
|
|
23
|
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"goal": true
|
|
27
|
+
},
|
|
28
|
+
"sequences": [],
|
|
29
|
+
"proof": {
|
|
30
|
+
"key": 24,
|
|
31
|
+
"asks": "max",
|
|
32
|
+
"witness": {
|
|
33
|
+
"path": []
|
|
34
|
+
},
|
|
35
|
+
"ends": [
|
|
36
|
+
{
|
|
37
|
+
"posts": [
|
|
38
|
+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d3-2: 15 benches round a round lake, 2 minutes' walk apart; how many minutes once round, from a bench back to it? A ring only to look at, a bench on each of its 15 places 2 apart, and the key is its length the whole way round, 30.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 15,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"spacing": 2,
|
|
8
|
+
"closed": true,
|
|
9
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
10
|
+
},
|
|
11
|
+
"operations": {},
|
|
12
|
+
"goal": {
|
|
13
|
+
"counters": {
|
|
14
|
+
"max": "length"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"seed": "0",
|
|
19
|
+
"start": {
|
|
20
|
+
"state": {
|
|
21
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
22
|
+
},
|
|
23
|
+
"goal": true
|
|
24
|
+
},
|
|
25
|
+
"sequences": [],
|
|
26
|
+
"proof": {
|
|
27
|
+
"key": 30,
|
|
28
|
+
"asks": "max",
|
|
29
|
+
"witness": {
|
|
30
|
+
"path": []
|
|
31
|
+
},
|
|
32
|
+
"ends": [
|
|
33
|
+
{
|
|
34
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d3-5: a boy on the first of 21 slabs jumps along the path, always skipping one slab; how many jumps to the last slab? The fewest jumps of two places, 10: the jumper takes a line too long for posts.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 21,
|
|
6
|
+
"first": 1
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"jump": {
|
|
10
|
+
"from": 1,
|
|
11
|
+
"step": 2
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"goal": {
|
|
15
|
+
"counters": {
|
|
16
|
+
"is": {
|
|
17
|
+
"at": 21
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"seed": "0",
|
|
23
|
+
"start": {
|
|
24
|
+
"state": {
|
|
25
|
+
"posts": [],
|
|
26
|
+
"at": 1
|
|
27
|
+
},
|
|
28
|
+
"goal": false
|
|
29
|
+
},
|
|
30
|
+
"sequences": [
|
|
31
|
+
[
|
|
32
|
+
{
|
|
33
|
+
"move": {
|
|
34
|
+
"jump": "forward"
|
|
35
|
+
},
|
|
36
|
+
"state": {
|
|
37
|
+
"posts": [],
|
|
38
|
+
"at": 3
|
|
39
|
+
},
|
|
40
|
+
"goal": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"move": {
|
|
44
|
+
"jump": "forward"
|
|
45
|
+
},
|
|
46
|
+
"state": {
|
|
47
|
+
"posts": [],
|
|
48
|
+
"at": 5
|
|
49
|
+
},
|
|
50
|
+
"goal": false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"move": {
|
|
54
|
+
"jump": "forward"
|
|
55
|
+
},
|
|
56
|
+
"state": {
|
|
57
|
+
"posts": [],
|
|
58
|
+
"at": 7
|
|
59
|
+
},
|
|
60
|
+
"goal": false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"move": {
|
|
64
|
+
"jump": "forward"
|
|
65
|
+
},
|
|
66
|
+
"state": {
|
|
67
|
+
"posts": [],
|
|
68
|
+
"at": 9
|
|
69
|
+
},
|
|
70
|
+
"goal": false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"move": {
|
|
74
|
+
"jump": "forward"
|
|
75
|
+
},
|
|
76
|
+
"state": {
|
|
77
|
+
"posts": [],
|
|
78
|
+
"at": 11
|
|
79
|
+
},
|
|
80
|
+
"goal": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"move": {
|
|
84
|
+
"jump": "forward"
|
|
85
|
+
},
|
|
86
|
+
"state": {
|
|
87
|
+
"posts": [],
|
|
88
|
+
"at": 13
|
|
89
|
+
},
|
|
90
|
+
"goal": false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"move": {
|
|
94
|
+
"jump": "forward"
|
|
95
|
+
},
|
|
96
|
+
"state": {
|
|
97
|
+
"posts": [],
|
|
98
|
+
"at": 15
|
|
99
|
+
},
|
|
100
|
+
"goal": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"move": {
|
|
104
|
+
"jump": "forward"
|
|
105
|
+
},
|
|
106
|
+
"state": {
|
|
107
|
+
"posts": [],
|
|
108
|
+
"at": 17
|
|
109
|
+
},
|
|
110
|
+
"goal": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"move": {
|
|
114
|
+
"jump": "forward"
|
|
115
|
+
},
|
|
116
|
+
"state": {
|
|
117
|
+
"posts": [],
|
|
118
|
+
"at": 19
|
|
119
|
+
},
|
|
120
|
+
"goal": false
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"move": {
|
|
124
|
+
"jump": "forward"
|
|
125
|
+
},
|
|
126
|
+
"state": {
|
|
127
|
+
"posts": [],
|
|
128
|
+
"at": 21
|
|
129
|
+
},
|
|
130
|
+
"goal": true
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
],
|
|
134
|
+
"proof": {
|
|
135
|
+
"key": 10,
|
|
136
|
+
"witness": {
|
|
137
|
+
"path": [
|
|
138
|
+
{
|
|
139
|
+
"jump": "forward"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"jump": "forward"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"jump": "forward"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"jump": "forward"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"jump": "forward"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"jump": "forward"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"jump": "forward"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"jump": "forward"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"jump": "forward"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"jump": "forward"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"ends": [
|
|
171
|
+
{
|
|
172
|
+
"posts": [],
|
|
173
|
+
"at": 21
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "The task gaps-34-d5-3: a square garden of sides of 20 metres, a post every 4 metres and one in every corner; how many posts? A square ring only to look at, four sides of five gaps 4 metres each, a post on each of its 20 places, and the key is its posts, 20: as many as its gaps, its length round 80 metres.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 20,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"spacing": 4,
|
|
8
|
+
"closed": true,
|
|
9
|
+
"sides": [5, 5, 5, 5],
|
|
10
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
|
11
|
+
},
|
|
12
|
+
"operations": {},
|
|
13
|
+
"goal": {
|
|
14
|
+
"counters": {
|
|
15
|
+
"max": "posts"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"seed": "0",
|
|
20
|
+
"start": {
|
|
21
|
+
"state": {
|
|
22
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
|
23
|
+
},
|
|
24
|
+
"goal": true
|
|
25
|
+
},
|
|
26
|
+
"sequences": [],
|
|
27
|
+
"proof": {
|
|
28
|
+
"key": 20,
|
|
29
|
+
"asks": "max",
|
|
30
|
+
"witness": {
|
|
31
|
+
"path": []
|
|
32
|
+
},
|
|
33
|
+
"ends": [
|
|
34
|
+
{
|
|
35
|
+
"posts": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "A line whose posts name a place twice and a place off the line: the line is refused, and the goal, which reads the line, is not read at all.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 5,
|
|
6
|
+
"first": 1,
|
|
7
|
+
"posts": [2, 2, 6]
|
|
8
|
+
},
|
|
9
|
+
"operations": {
|
|
10
|
+
"post": {}
|
|
11
|
+
},
|
|
12
|
+
"goal": {
|
|
13
|
+
"every": {
|
|
14
|
+
"from": 3,
|
|
15
|
+
"to": 2
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"seed": "0",
|
|
20
|
+
"sequences": [],
|
|
21
|
+
"proof": {
|
|
22
|
+
"undecided": "invalid",
|
|
23
|
+
"errors": [
|
|
24
|
+
{
|
|
25
|
+
"path": "/line/posts/1",
|
|
26
|
+
"message": "a place named twice"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "/line/posts/2",
|
|
30
|
+
"message": "a place of the line, a whole number from 1 to 5"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Rings the kind refuses: one drawn upright, and sides whose gaps together are not the ring's places; the goal, which reads the line, is not read at all.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 6,
|
|
6
|
+
"closed": true,
|
|
7
|
+
"vertical": true,
|
|
8
|
+
"sides": [2, 2, 1]
|
|
9
|
+
},
|
|
10
|
+
"operations": {
|
|
11
|
+
"post": {}
|
|
12
|
+
},
|
|
13
|
+
"goal": {
|
|
14
|
+
"counters": {
|
|
15
|
+
"max": "pieces"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"seed": "0",
|
|
20
|
+
"sequences": [],
|
|
21
|
+
"proof": {
|
|
22
|
+
"undecided": "invalid",
|
|
23
|
+
"errors": [
|
|
24
|
+
{
|
|
25
|
+
"path": "/line/vertical",
|
|
26
|
+
"message": "a ring is never drawn upright"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "/line/sides",
|
|
30
|
+
"message": "the sides' gaps together are the ring's places, 6"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "A scene the kind refuses, with every error it names: a jump as long as the line, and a goal that names a counter of an operation the scene does not allow and asks both the greatest and the least.",
|
|
3
|
+
"scene": {
|
|
4
|
+
"line": {
|
|
5
|
+
"places": 5,
|
|
6
|
+
"first": 1
|
|
7
|
+
},
|
|
8
|
+
"operations": {
|
|
9
|
+
"jump": {
|
|
10
|
+
"from": 1,
|
|
11
|
+
"step": 5
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"goal": {
|
|
15
|
+
"counters": {
|
|
16
|
+
"is": {
|
|
17
|
+
"pieces": 2
|
|
18
|
+
},
|
|
19
|
+
"max": "posts",
|
|
20
|
+
"min": "gaps"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"seed": "0",
|
|
25
|
+
"sequences": [],
|
|
26
|
+
"proof": {
|
|
27
|
+
"undecided": "invalid",
|
|
28
|
+
"errors": [
|
|
29
|
+
{
|
|
30
|
+
"path": "/operations/jump/step",
|
|
31
|
+
"message": "a whole number from 1 to 4"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "/goal/counters/is/pieces",
|
|
35
|
+
"message": "no counter of the scene has this name"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "/goal/counters",
|
|
39
|
+
"message": "max or min, never both"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|