@altnovatrail/widgets 0.1.2 → 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
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "The bishop of the course's task grid-56-d1-1 on C3 of a board of 5 by 5. The scene has no goal: the cells it moves to in one move are the first layer of the state graph, 8, the task's key. A bishop's move goes along a diagonal as far as it likes; a move along a row is refused.",
2
+ "description": "The bishop of the course's task grid-56-d1-1 on C3 of a board of 5 by 5. The goal counts the cells the bishop reaches in at least one move and at most one, 8, the task's key: C3 itself is no move. A bishop's move goes along a diagonal as far as it likes; a move along a row is refused.",
3
3
  "scene": {
4
4
  "sheet": {
5
5
  "rows": 5,
@@ -9,6 +9,12 @@
9
9
  "bishop": {
10
10
  "cell": "C3"
11
11
  }
12
+ },
13
+ "goal": {
14
+ "bishop_reach": {
15
+ "least": 1,
16
+ "most": 1
17
+ }
12
18
  }
13
19
  },
14
20
  "seed": "0",
@@ -31,7 +37,7 @@
31
37
  "marks": {},
32
38
  "bishop_at": "A1"
33
39
  },
34
- "goal": false
40
+ "goal": true
35
41
  },
36
42
  {
37
43
  "move": {
@@ -43,7 +49,7 @@
43
49
  "marks": {},
44
50
  "bishop_at": "E5"
45
51
  },
46
- "goal": false
52
+ "goal": true
47
53
  },
48
54
  {
49
55
  "move": {
@@ -56,6 +62,101 @@
56
62
  ]
57
63
  ],
58
64
  "proof": {
59
- "undecided": "no-goal"
65
+ "key": 8,
66
+ "asks": "count",
67
+ "witness": {
68
+ "paths": [
69
+ [
70
+ {
71
+ "bishop": {
72
+ "to": "A1"
73
+ }
74
+ }
75
+ ],
76
+ [
77
+ {
78
+ "bishop": {
79
+ "to": "A5"
80
+ }
81
+ }
82
+ ],
83
+ [
84
+ {
85
+ "bishop": {
86
+ "to": "B2"
87
+ }
88
+ }
89
+ ],
90
+ [
91
+ {
92
+ "bishop": {
93
+ "to": "B4"
94
+ }
95
+ }
96
+ ],
97
+ [
98
+ {
99
+ "bishop": {
100
+ "to": "D2"
101
+ }
102
+ }
103
+ ],
104
+ [
105
+ {
106
+ "bishop": {
107
+ "to": "D4"
108
+ }
109
+ }
110
+ ],
111
+ [
112
+ {
113
+ "bishop": {
114
+ "to": "E1"
115
+ }
116
+ }
117
+ ],
118
+ [
119
+ {
120
+ "bishop": {
121
+ "to": "E5"
122
+ }
123
+ }
124
+ ]
125
+ ]
126
+ },
127
+ "ends": [
128
+ {
129
+ "marks": {},
130
+ "bishop_at": "A1"
131
+ },
132
+ {
133
+ "marks": {},
134
+ "bishop_at": "A5"
135
+ },
136
+ {
137
+ "marks": {},
138
+ "bishop_at": "B2"
139
+ },
140
+ {
141
+ "marks": {},
142
+ "bishop_at": "B4"
143
+ },
144
+ {
145
+ "marks": {},
146
+ "bishop_at": "D2"
147
+ },
148
+ {
149
+ "marks": {},
150
+ "bishop_at": "D4"
151
+ },
152
+ {
153
+ "marks": {},
154
+ "bishop_at": "E1"
155
+ },
156
+ {
157
+ "marks": {},
158
+ "bishop_at": "E5"
159
+ }
160
+ ]
60
161
  }
61
162
  }
@@ -0,0 +1,123 @@
1
+ {
2
+ "description": "A counter's cases on a table of numbers from 1 in rows of 5, A3 cut out, the counter on 1 counting on by 2 or 3 and back by 1. It lands on no hole but counts past one; a step past a row's end goes into the next row, and back across it too; a cell it does not count to, its own, and a cell off the sheet are refused. The goal counts the numbers from 20 on it stands on, and the table ends at 10, so it cannot be met.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 2,
6
+ "cols": 5,
7
+ "numbers": {
8
+ "first": 1
9
+ },
10
+ "holes": ["A3"]
11
+ },
12
+ "operations": {
13
+ "counter": {
14
+ "cell": "A1",
15
+ "steps": [2, -1, 3]
16
+ }
17
+ },
18
+ "goal": {
19
+ "counter_in": {
20
+ "least": 20
21
+ }
22
+ }
23
+ },
24
+ "seed": "0",
25
+ "start": {
26
+ "state": {
27
+ "marks": {},
28
+ "counter_at": "A1"
29
+ },
30
+ "goal": false
31
+ },
32
+ "sequences": [
33
+ [
34
+ {
35
+ "move": {
36
+ "counter": {
37
+ "to": "A3"
38
+ }
39
+ },
40
+ "refused": "hole"
41
+ },
42
+ {
43
+ "move": {
44
+ "counter": {
45
+ "to": "A4"
46
+ }
47
+ },
48
+ "state": {
49
+ "marks": {},
50
+ "counter_at": "A4"
51
+ },
52
+ "goal": false
53
+ },
54
+ {
55
+ "move": {
56
+ "counter": {
57
+ "to": "A3"
58
+ }
59
+ },
60
+ "refused": "hole"
61
+ },
62
+ {
63
+ "move": {
64
+ "counter": {
65
+ "to": "B1"
66
+ }
67
+ },
68
+ "state": {
69
+ "marks": {},
70
+ "counter_at": "B1"
71
+ },
72
+ "goal": false
73
+ },
74
+ {
75
+ "move": {
76
+ "counter": {
77
+ "to": "A5"
78
+ }
79
+ },
80
+ "state": {
81
+ "marks": {},
82
+ "counter_at": "A5"
83
+ },
84
+ "goal": false
85
+ },
86
+ {
87
+ "move": {
88
+ "counter": {
89
+ "to": "A5"
90
+ }
91
+ },
92
+ "refused": "not-its-move"
93
+ },
94
+ {
95
+ "move": {
96
+ "counter": {
97
+ "to": "C1"
98
+ }
99
+ },
100
+ "refused": "no-cell"
101
+ },
102
+ {
103
+ "move": {
104
+ "counter": {
105
+ "to": "B2"
106
+ }
107
+ },
108
+ "state": {
109
+ "marks": {},
110
+ "counter_at": "B2"
111
+ },
112
+ "goal": false
113
+ }
114
+ ]
115
+ ],
116
+ "proof": {
117
+ "key": "unreachable",
118
+ "witness": {
119
+ "layers": [1, 1, 2, 4]
120
+ },
121
+ "ends": []
122
+ }
123
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "description": "The course's task div-56-d1-3: two numbers leave 5 and 7 divided by 9. A table of numbers from 0 in rows of 9, the counter on 5 counting on by 7: past the row's end it goes into the next row, to 12, whose column is the remainder of the sum, 3. The scene has no goal: the remainder is read off the table.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 3,
6
+ "cols": 9,
7
+ "numbers": {
8
+ "first": 0
9
+ }
10
+ },
11
+ "operations": {
12
+ "counter": {
13
+ "cell": "A6",
14
+ "steps": [7]
15
+ }
16
+ }
17
+ },
18
+ "seed": "0",
19
+ "start": {
20
+ "state": {
21
+ "marks": {},
22
+ "counter_at": "A6"
23
+ },
24
+ "goal": false
25
+ },
26
+ "sequences": [
27
+ [
28
+ {
29
+ "move": {
30
+ "counter": {
31
+ "to": "B4"
32
+ }
33
+ },
34
+ "state": {
35
+ "marks": {},
36
+ "counter_at": "B4"
37
+ },
38
+ "goal": false
39
+ },
40
+ {
41
+ "move": {
42
+ "counter": {
43
+ "to": "C2"
44
+ }
45
+ },
46
+ "state": {
47
+ "marks": {},
48
+ "counter_at": "C2"
49
+ },
50
+ "goal": false
51
+ }
52
+ ]
53
+ ],
54
+ "proof": {
55
+ "undecided": "no-goal"
56
+ }
57
+ }