@altnovatrail/widgets 0.1.1 → 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
@@ -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
+ }