@altnovatrail/widgets 0.1.2 → 0.2.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 (110) hide show
  1. package/README.md +1 -1
  2. package/cores/vector.schema.json +82 -3
  3. package/kinds/cells/cells.handles.json +148 -3
  4. package/kinds/cells/cells.schema.json +716 -8
  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/knight-after-no-parity.json +31 -0
  29. package/kinds/cells/vectors/knight-par-56-d2-2.json +61 -6
  30. package/kinds/cells/vectors/mosaic-grid-56-d2-2.json +84 -0
  31. package/kinds/cells/vectors/nodes-gaps-56-d2-2.json +44 -0
  32. package/kinds/cells/vectors/nodes-gaps-56-d4-2.json +70 -0
  33. package/kinds/cells/vectors/number-div-56-d2-2.json +49 -0
  34. package/kinds/cells/vectors/numbers-div-56-d3-1.json +24 -0
  35. package/kinds/cells/vectors/numbers-invalid.json +56 -0
  36. package/kinds/cells/vectors/paper-26x26.json +743 -0
  37. package/kinds/cells/vectors/paper-cube-12-d2-1.json +43 -19
  38. package/kinds/cells/vectors/paper-cube-12-d5-1.json +47 -4
  39. package/kinds/cells/vectors/paper-cube-56-d4-1.json +56 -5
  40. package/kinds/cells/vectors/paper-drawn-lines.json +184 -0
  41. package/kinds/cells/vectors/paper-grid-56-d1-2.json +46 -5
  42. package/kinds/cells/vectors/paper-turn-invalid.json +4 -4
  43. package/kinds/cells/vectors/path-6x6.json +119 -0
  44. package/kinds/cells/vectors/path-beside.json +108 -0
  45. package/kinds/cells/vectors/path-enum-12-d3-5.json +187 -0
  46. package/kinds/cells/vectors/path-enum-34-d4-3.json +412 -0
  47. package/kinds/cells/vectors/path-enum-56-d3-3.json +411 -0
  48. package/kinds/cells/vectors/path-enum-56-d3-5.json +351 -0
  49. package/kinds/cells/vectors/path-invalid.json +37 -0
  50. package/kinds/cells/vectors/path-limit.json +58 -0
  51. package/kinds/cells/vectors/path-maze.json +297 -0
  52. package/kinds/cells/vectors/path-unreachable.json +76 -0
  53. package/kinds/cells/vectors/perimeter-grid-56-d2-1.json +86 -0
  54. package/kinds/cells/vectors/perimeter-grid-56-d3-1.json +102 -0
  55. package/kinds/cells/vectors/perimeter-grid-56-d3-3.json +112 -0
  56. package/kinds/cells/vectors/perimeter-grid-56-d4-3.json +289 -0
  57. package/kinds/cells/vectors/polyomino-cases.json +191 -0
  58. package/kinds/cells/vectors/polyomino-grid-56-d3-4.json +205 -0
  59. package/kinds/cells/vectors/polyomino-grid-56-d4-1.json +137 -0
  60. package/kinds/cells/vectors/polyomino-grid-56-d5-3.json +157 -0
  61. package/kinds/cells/vectors/polyomino-invalid.json +45 -0
  62. package/kinds/cells/vectors/polyomino-one-pieces.json +28 -0
  63. package/kinds/cells/vectors/route-par-56-d3-3.json +245 -0
  64. package/kinds/cells/vectors/sides-gaps-56-d3-2.json +44 -0
  65. package/kinds/cells/vectors/sieve-div-56-d3-2.json +140 -0
  66. package/kinds/cells/vectors/tear-gaps-56-d3-1.json +84 -0
  67. package/kinds/cells/vectors/tear-limit.json +56 -0
  68. package/lib/cores/enumerate.d.ts +33 -0
  69. package/lib/cores/enumerate.js +77 -0
  70. package/lib/cores/kind.d.ts +70 -5
  71. package/lib/cores/kind.js +2 -2
  72. package/lib/cores/search.d.ts +47 -10
  73. package/lib/cores/search.js +129 -37
  74. package/lib/kinds/cells/bishop.d.ts +1 -1
  75. package/lib/kinds/cells/bishop.js +1 -1
  76. package/lib/kinds/cells/counter.d.ts +26 -0
  77. package/lib/kinds/cells/counter.js +249 -0
  78. package/lib/kinds/cells/cut.d.ts +46 -0
  79. package/lib/kinds/cells/cut.js +400 -0
  80. package/lib/kinds/cells/figure.d.ts +13 -0
  81. package/lib/kinds/cells/figure.js +114 -0
  82. package/lib/kinds/cells/holes.d.ts +6 -0
  83. package/lib/kinds/cells/holes.js +57 -0
  84. package/lib/kinds/cells/index.d.ts +8 -0
  85. package/lib/kinds/cells/index.js +10 -2
  86. package/lib/kinds/cells/kind.d.ts +3 -2
  87. package/lib/kinds/cells/kind.js +23 -8
  88. package/lib/kinds/cells/knight.d.ts +1 -1
  89. package/lib/kinds/cells/number.d.ts +6 -0
  90. package/lib/kinds/cells/number.js +32 -0
  91. package/lib/kinds/cells/operation.d.ts +27 -7
  92. package/lib/kinds/cells/paper.d.ts +10 -2
  93. package/lib/kinds/cells/paper.js +109 -13
  94. package/lib/kinds/cells/path.d.ts +38 -0
  95. package/lib/kinds/cells/path.js +288 -0
  96. package/lib/kinds/cells/piece.d.ts +27 -7
  97. package/lib/kinds/cells/piece.js +202 -37
  98. package/lib/kinds/cells/polyomino.d.ts +45 -0
  99. package/lib/kinds/cells/polyomino.js +461 -0
  100. package/lib/kinds/cells/registry.js +35 -4
  101. package/lib/kinds/cells/schema.js +45 -4
  102. package/lib/kinds/cells/sheet.d.ts +20 -1
  103. package/lib/kinds/cells/sheet.js +84 -6
  104. package/lib/kinds/cells/side.d.ts +33 -0
  105. package/lib/kinds/cells/side.js +86 -0
  106. package/lib/kinds/cells/sieve.d.ts +26 -0
  107. package/lib/kinds/cells/sieve.js +208 -0
  108. package/lib/kinds/cells/step.d.ts +1 -1
  109. package/lib/kinds/cells/step.js +1 -1
  110. package/package.json +5 -1
@@ -0,0 +1,84 @@
1
+ {
2
+ "description": "The course's task grid-56-d2-2: a mosaic of 3 by 3 tiles of 1 cm without its four corners, the tiles left red. The goal asks the area of the red figure, 5, the task's key.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 3,
6
+ "cols": 3,
7
+ "marks": {
8
+ "A2": {
9
+ "color": "red"
10
+ },
11
+ "B1": {
12
+ "color": "red"
13
+ },
14
+ "B2": {
15
+ "color": "red"
16
+ },
17
+ "B3": {
18
+ "color": "red"
19
+ },
20
+ "C2": {
21
+ "color": "red"
22
+ }
23
+ }
24
+ },
25
+ "operations": {},
26
+ "goal": {
27
+ "area": {
28
+ "color": "red"
29
+ }
30
+ }
31
+ },
32
+ "seed": "0",
33
+ "start": {
34
+ "state": {
35
+ "marks": {
36
+ "A2": {
37
+ "color": "red"
38
+ },
39
+ "B1": {
40
+ "color": "red"
41
+ },
42
+ "B2": {
43
+ "color": "red"
44
+ },
45
+ "B3": {
46
+ "color": "red"
47
+ },
48
+ "C2": {
49
+ "color": "red"
50
+ }
51
+ }
52
+ },
53
+ "goal": true
54
+ },
55
+ "sequences": [],
56
+ "proof": {
57
+ "key": 5,
58
+ "asks": "max",
59
+ "witness": {
60
+ "path": []
61
+ },
62
+ "ends": [
63
+ {
64
+ "marks": {
65
+ "A2": {
66
+ "color": "red"
67
+ },
68
+ "B1": {
69
+ "color": "red"
70
+ },
71
+ "B2": {
72
+ "color": "red"
73
+ },
74
+ "B3": {
75
+ "color": "red"
76
+ },
77
+ "C2": {
78
+ "color": "red"
79
+ }
80
+ }
81
+ }
82
+ ]
83
+ }
84
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "description": "The course's task gaps-56-d2-2: an orchard of 20 by 30 metres, a tree every 5 metres both ways and one in each corner, laid as a sheet of 4 rows of 6 cells of 5 metres. The trees stand on the nodes of the grid; the goal counts them, 35, the task's key. The sheet is only to look at, so a cut is refused.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 4,
6
+ "cols": 6
7
+ },
8
+ "operations": {},
9
+ "goal": {
10
+ "nodes": {}
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": "v1:A"
26
+ }
27
+ },
28
+ "refused": "op-not-in-scene"
29
+ }
30
+ ]
31
+ ],
32
+ "proof": {
33
+ "key": 35,
34
+ "asks": "max",
35
+ "witness": {
36
+ "path": []
37
+ },
38
+ "ends": [
39
+ {
40
+ "marks": {}
41
+ }
42
+ ]
43
+ }
44
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "description": "The course's task gaps-56-d4-2: a square garden of 12 metres, a post every 3 metres along its fence and along two fences across its middle, one post where fences meet; laid as a sheet of 4 by 4 cells of 3 metres, the fences inside as walls. The goal counts the nodes on an edge, the sheet's own or a wall, 21, the task's key. The corner posts, which the statement gives, are marks on their nodes. The sheet is only to look at.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 4,
6
+ "cols": 4,
7
+ "walls": [
8
+ ["A2", "A3"],
9
+ ["B2", "B3"],
10
+ ["C2", "C3"],
11
+ ["D2", "D3"],
12
+ ["B1", "C1"],
13
+ ["B2", "C2"],
14
+ ["B3", "C3"],
15
+ ["B4", "C4"]
16
+ ],
17
+ "node_marks": {
18
+ "v0:h0": {
19
+ "color": "green"
20
+ },
21
+ "v4:h0": {
22
+ "color": "green"
23
+ },
24
+ "v0:h4": {
25
+ "color": "green"
26
+ },
27
+ "v4:h4": {
28
+ "color": "green"
29
+ }
30
+ }
31
+ },
32
+ "operations": {},
33
+ "goal": {
34
+ "nodes": {
35
+ "edge": true
36
+ }
37
+ }
38
+ },
39
+ "seed": "0",
40
+ "start": {
41
+ "state": {
42
+ "marks": {}
43
+ },
44
+ "goal": true
45
+ },
46
+ "sequences": [
47
+ [
48
+ {
49
+ "move": {
50
+ "cut": {
51
+ "side": "v1:A"
52
+ }
53
+ },
54
+ "refused": "op-not-in-scene"
55
+ }
56
+ ]
57
+ ],
58
+ "proof": {
59
+ "key": 21,
60
+ "asks": "max",
61
+ "witness": {
62
+ "path": []
63
+ },
64
+ "ends": [
65
+ {
66
+ "marks": {}
67
+ }
68
+ ]
69
+ }
70
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "description": "The course's task div-56-d2-2: a number divided by 7 gives 12 with 5 left over. A table of numbers from 1 in rows of 7, only to look at: 12 whole rows end at 84, and the 5th number of the 13th row, M5, is the number. The goal reads the number of M5, 89, the task's key; every state meets it, and the scene's one state is the only one. A move of a counter is refused: the scene allows no operation.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 13,
6
+ "cols": 7,
7
+ "numbers": {
8
+ "first": 1
9
+ }
10
+ },
11
+ "operations": {},
12
+ "goal": {
13
+ "number_at": {
14
+ "cell": "M5"
15
+ }
16
+ }
17
+ },
18
+ "seed": "0",
19
+ "start": {
20
+ "state": {
21
+ "marks": {}
22
+ },
23
+ "goal": true
24
+ },
25
+ "sequences": [
26
+ [
27
+ {
28
+ "move": {
29
+ "counter": {
30
+ "to": "A2"
31
+ }
32
+ },
33
+ "refused": "op-not-in-scene"
34
+ }
35
+ ]
36
+ ],
37
+ "proof": {
38
+ "key": 89,
39
+ "asks": "max",
40
+ "witness": {
41
+ "path": []
42
+ },
43
+ "ends": [
44
+ {
45
+ "marks": {}
46
+ }
47
+ ]
48
+ }
49
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "description": "The course's task div-56-d3-1: seats numbered row by row, 18 in a row. A table of numbers from 1 in rows of 18, only to look at: seat 97 is in its 6th row. The scene has no goal: the row is read off the table.",
3
+ "scene": {
4
+ "sheet": {
5
+ "rows": 6,
6
+ "cols": 18,
7
+ "numbers": {
8
+ "first": 1
9
+ }
10
+ },
11
+ "operations": {}
12
+ },
13
+ "seed": "0",
14
+ "start": {
15
+ "state": {
16
+ "marks": {}
17
+ },
18
+ "goal": false
19
+ },
20
+ "sequences": [],
21
+ "proof": {
22
+ "undecided": "no-goal"
23
+ }
24
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "description": "An invalid scene of the number table's operations: a sheet with no numbers, a step of 0 and a step given twice, a remainder left no less than a width, and a goal whose least number is more than its greatest. 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
+ "counter": {
10
+ "cell": "A1",
11
+ "steps": [0, 2, 2]
12
+ },
13
+ "sieve": {
14
+ "by": [2, 3],
15
+ "left": 2
16
+ }
17
+ },
18
+ "goal": {
19
+ "counter_in": {
20
+ "least": 5,
21
+ "most": 3
22
+ }
23
+ }
24
+ },
25
+ "seed": "0",
26
+ "sequences": [],
27
+ "proof": {
28
+ "undecided": "invalid",
29
+ "errors": [
30
+ {
31
+ "path": "/operations/counter",
32
+ "message": "the sheet gives no numbers: a counter counts along them"
33
+ },
34
+ {
35
+ "path": "/operations/counter/steps/0",
36
+ "message": "a step of no number moves nothing"
37
+ },
38
+ {
39
+ "path": "/operations/counter/steps/2",
40
+ "message": "a step given twice"
41
+ },
42
+ {
43
+ "path": "/operations/sieve",
44
+ "message": "the sheet gives no numbers: a sieve counts them out"
45
+ },
46
+ {
47
+ "path": "/operations/sieve/left",
48
+ "message": "less than every width: no remainder reaches it"
49
+ },
50
+ {
51
+ "path": "/goal/counter_in/least",
52
+ "message": "no more than the greatest number"
53
+ }
54
+ ]
55
+ }
56
+ }