@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://altnovatrail.github.io/widgets/kinds/cells/2.0/cells.schema.json",
3
+ "$id": "https://altnovatrail.github.io/widgets/kinds/cells/2.5/cells.schema.json",
4
4
  "title": "A scene of the widget kind cells",
5
5
  "description": "A sheet of cells, the operations a learner may play on it with their parameters, and at most one goal a state may meet. Under $defs, a move and a state of the kind.",
6
6
  "type": "object",
@@ -95,8 +95,165 @@
95
95
  "unevaluatedProperties": false
96
96
  },
97
97
  "paper": {
98
- "description": "Fold the sheet over in layers along lines of its grid, each fold laying the part on one side over the other, no wider than it; then punch a place through every layer, which opens the sheet. No parameters.",
98
+ "description": "Fold the sheet over in layers along lines of its grid, each fold laying the part on one side over the other, no wider than it; then punch a place through every layer, which opens the sheet.",
99
99
  "type": "object",
100
+ "properties": {
101
+ "lines": {
102
+ "description": "The lines the paper may be folded along, as the statement draws them on the open sheet, each moving with a part laid over; every line of the sheet where the scene gives none. Their order is no order of the folds.",
103
+ "type": "array",
104
+ "items": {
105
+ "description": "A line of the sheet, \"v<k>\" between the columns k and k + 1, or \"h<k>\" between the rows k and k + 1, counted from 1.",
106
+ "type": "string",
107
+ "pattern": "^[vh]([1-9]|1[0-9]|2[0-5])$"
108
+ },
109
+ "minItems": 1,
110
+ "uniqueItems": true
111
+ }
112
+ },
113
+ "unevaluatedProperties": false
114
+ },
115
+ "counter": {
116
+ "description": "A counter on a table of numbers, which counts on or back along the numbers by the steps given, past a row's end into the next row; it lands on no hole and counts past one.",
117
+ "type": "object",
118
+ "properties": {
119
+ "cell": {
120
+ "description": "The cell the counter stands on at the scene's start, not a hole.",
121
+ "$ref": "#/$defs/cell"
122
+ },
123
+ "steps": {
124
+ "description": "The steps the counter counts by, each a count of numbers, on where it is above 0 and back where it is below; none given twice.",
125
+ "type": "array",
126
+ "items": {
127
+ "description": "A step: a count of numbers, on or back.",
128
+ "type": "integer",
129
+ "minimum": -675,
130
+ "maximum": 675,
131
+ "not": {
132
+ "const": 0
133
+ }
134
+ },
135
+ "minItems": 1,
136
+ "uniqueItems": true
137
+ }
138
+ },
139
+ "required": [
140
+ "cell",
141
+ "steps"
142
+ ],
143
+ "unevaluatedProperties": false
144
+ },
145
+ "sieve": {
146
+ "description": "The numbers of a table of numbers counted out by a width, as things are counted out in twos or threes: each number whose remainder by the width is not left is crossed out.",
147
+ "type": "object",
148
+ "properties": {
149
+ "by": {
150
+ "description": "The widths the numbers may be counted out by, each a number of the table on no hole, which a tap counts out by, none given twice.",
151
+ "type": "array",
152
+ "items": {
153
+ "description": "A width, a count of numbers.",
154
+ "type": "integer",
155
+ "minimum": 2,
156
+ "maximum": 10674
157
+ },
158
+ "minItems": 1,
159
+ "uniqueItems": true
160
+ },
161
+ "left": {
162
+ "description": "The remainder a number keeps, by each width counted out, to be left; 0 by default, and less than every width.",
163
+ "type": "integer",
164
+ "minimum": 0,
165
+ "maximum": 10674
166
+ }
167
+ },
168
+ "required": [
169
+ "by"
170
+ ],
171
+ "unevaluatedProperties": false
172
+ },
173
+ "path": {
174
+ "description": "A path drawn from cell to cell across their sides, from the cell it starts on: never into a hole, through a wall or onto a cell it has visited, but back onto its first cell, which closes it into a route that takes no more steps.",
175
+ "type": "object",
176
+ "properties": {
177
+ "from": {
178
+ "description": "The cell the path starts on, not a hole.",
179
+ "$ref": "#/$defs/cell"
180
+ },
181
+ "directions": {
182
+ "description": "The directions a step may go in, as the sheet lies: up, left, right, down; every one where left out.",
183
+ "type": "array",
184
+ "items": {
185
+ "description": "A direction a step may go in.",
186
+ "enum": [
187
+ "up",
188
+ "left",
189
+ "right",
190
+ "down"
191
+ ]
192
+ },
193
+ "minItems": 1,
194
+ "uniqueItems": true
195
+ }
196
+ },
197
+ "required": [
198
+ "from"
199
+ ],
200
+ "unevaluatedProperties": false
201
+ },
202
+ "cut": {
203
+ "description": "Cuts along the sides between cells, which part the sheet: a part is the cells joined across sides that no cut, no wall and no hole parts.",
204
+ "type": "object",
205
+ "properties": {
206
+ "along": {
207
+ "description": "How far a cut runs from the side a move names: side, that side alone; part, along its line through the part it lies in, from edge to edge of the part, as a sheet of stamps is torn; line, along its whole line across the sheet. side where left out.",
208
+ "enum": [
209
+ "side",
210
+ "part",
211
+ "line"
212
+ ]
213
+ }
214
+ },
215
+ "unevaluatedProperties": false
216
+ },
217
+ "polyomino": {
218
+ "description": "Figures of cells joined by their sides laid on the sheet and lifted off it: the shapes given, or every shape of a count of cells, one of them, the count with no turn and no flip. A figure covers whole cells, never a hole or another figure; it lies over a wall and over paint.",
219
+ "type": "object",
220
+ "properties": {
221
+ "shapes": {
222
+ "description": "The shapes of the figures, a domino or any other.",
223
+ "type": "array",
224
+ "items": {
225
+ "description": "A shape, by the cells it covers on a grid of its own, as A1, A2 and B2 for an L of three cells; where on that grid does not matter. Its cells are joined by their sides.",
226
+ "type": "array",
227
+ "items": {
228
+ "description": "A cell of the shape.",
229
+ "$ref": "#/$defs/cell"
230
+ },
231
+ "minItems": 2,
232
+ "uniqueItems": true
233
+ },
234
+ "minItems": 1
235
+ },
236
+ "cells": {
237
+ "description": "Every shape of so many cells joined by their sides, from 2 to 6, in every way it may lie.",
238
+ "type": "integer",
239
+ "minimum": 2,
240
+ "maximum": 6
241
+ },
242
+ "turn": {
243
+ "description": "Whether a figure of the shapes given may be turned by a quarter, a half or three quarters; true where left out.",
244
+ "type": "boolean"
245
+ },
246
+ "flip": {
247
+ "description": "Whether a figure of the shapes given may be turned over, its left and right changed; true where left out.",
248
+ "type": "boolean"
249
+ },
250
+ "pieces": {
251
+ "description": "How many figures may lie on the sheet at once; as many as fit where left out.",
252
+ "type": "integer",
253
+ "minimum": 1,
254
+ "maximum": 676
255
+ }
256
+ },
100
257
  "unevaluatedProperties": false
101
258
  }
102
259
  },
@@ -240,6 +397,299 @@
240
397
  "color"
241
398
  ],
242
399
  "unevaluatedProperties": false
400
+ },
401
+ "step_reach": {
402
+ "description": "The piece step stands on a cell whose fewest moves from the cell it starts on are at least least and at most most; the key counts those cells. The scene allows the operation step alone, so that its states are the piece's cells.",
403
+ "type": "object",
404
+ "properties": {
405
+ "least": {
406
+ "description": "The fewest moves to a cell counted, 0 by default: the cell it starts on.",
407
+ "type": "integer",
408
+ "minimum": 0,
409
+ "maximum": 676
410
+ },
411
+ "most": {
412
+ "description": "The most moves to a cell counted; any number by default.",
413
+ "type": "integer",
414
+ "minimum": 0,
415
+ "maximum": 676
416
+ }
417
+ },
418
+ "unevaluatedProperties": false
419
+ },
420
+ "bishop_reach": {
421
+ "description": "The piece bishop stands on a cell whose fewest moves from the cell it starts on are at least least and at most most; the key counts those cells. The scene allows the operation bishop alone, so that its states are the piece's cells.",
422
+ "type": "object",
423
+ "properties": {
424
+ "least": {
425
+ "description": "The fewest moves to a cell counted, 0 by default: the cell it starts on.",
426
+ "type": "integer",
427
+ "minimum": 0,
428
+ "maximum": 676
429
+ },
430
+ "most": {
431
+ "description": "The most moves to a cell counted; any number by default.",
432
+ "type": "integer",
433
+ "minimum": 0,
434
+ "maximum": 676
435
+ }
436
+ },
437
+ "unevaluatedProperties": false
438
+ },
439
+ "paper_holes": {
440
+ "description": "The paper is punched and opened, through the cell where the goal names one; the key is the most holes the open sheet has. The scene allows the operation paper.",
441
+ "type": "object",
442
+ "properties": {
443
+ "cell": {
444
+ "description": "A cell a hole is to go through, not a hole.",
445
+ "$ref": "#/$defs/cell"
446
+ }
447
+ },
448
+ "unevaluatedProperties": false
449
+ },
450
+ "perimeter": {
451
+ "description": "The cells of the colour are joined by their sides into one figure, of as many cells as cells names where it names them; the key is the greatest perimeter of such a figure.",
452
+ "type": "object",
453
+ "properties": {
454
+ "color": {
455
+ "description": "The colour of the figure's cells.",
456
+ "enum": [
457
+ "red",
458
+ "blue",
459
+ "green",
460
+ "yellow"
461
+ ]
462
+ },
463
+ "cells": {
464
+ "description": "How many cells the figure has; any number where it is left out.",
465
+ "type": "integer",
466
+ "minimum": 1,
467
+ "maximum": 676
468
+ },
469
+ "side": {
470
+ "description": "How long a cell's side is, in the units of the key; 1 where it is left out.",
471
+ "type": "integer",
472
+ "minimum": 1,
473
+ "maximum": 100
474
+ }
475
+ },
476
+ "required": [
477
+ "color"
478
+ ],
479
+ "unevaluatedProperties": false
480
+ },
481
+ "area": {
482
+ "description": "The cells of the colour are joined by their sides into one figure, of as many cells as cells names where it names them; the key is the greatest area of such a figure.",
483
+ "type": "object",
484
+ "properties": {
485
+ "color": {
486
+ "description": "The colour of the figure's cells.",
487
+ "enum": [
488
+ "red",
489
+ "blue",
490
+ "green",
491
+ "yellow"
492
+ ]
493
+ },
494
+ "cells": {
495
+ "description": "How many cells the figure has; any number where it is left out.",
496
+ "type": "integer",
497
+ "minimum": 1,
498
+ "maximum": 676
499
+ },
500
+ "side": {
501
+ "description": "How long a cell's side is, in the units of the key; 1 where it is left out.",
502
+ "type": "integer",
503
+ "minimum": 1,
504
+ "maximum": 100
505
+ }
506
+ },
507
+ "required": [
508
+ "color"
509
+ ],
510
+ "unevaluatedProperties": false
511
+ },
512
+ "number_at": {
513
+ "description": "The number a cell of a table of numbers holds, found by its row and its column; every state meets it, and the key is the number.",
514
+ "type": "object",
515
+ "properties": {
516
+ "cell": {
517
+ "description": "The cell, not a hole.",
518
+ "$ref": "#/$defs/cell"
519
+ }
520
+ },
521
+ "required": [
522
+ "cell"
523
+ ],
524
+ "unevaluatedProperties": false
525
+ },
526
+ "counter_in": {
527
+ "description": "The counter stands on a number from least to most; the key counts the cells of those numbers it reaches. The scene allows the operation counter alone, so that its states are the counter's cells.",
528
+ "type": "object",
529
+ "properties": {
530
+ "least": {
531
+ "description": "The least number counted; the table's first by default.",
532
+ "type": "integer",
533
+ "minimum": 0,
534
+ "maximum": 10674
535
+ },
536
+ "most": {
537
+ "description": "The greatest number counted; the table's last by default.",
538
+ "type": "integer",
539
+ "minimum": 0,
540
+ "maximum": 10674
541
+ }
542
+ },
543
+ "unevaluatedProperties": false
544
+ },
545
+ "counter_missed": {
546
+ "description": "The counter stands on the number right after one it never stands on from its start; the key is the greatest number it never stands on, read before a number it does. The scene allows the operation counter alone, on a table with no hole whose last number the counter stands on.",
547
+ "type": "object",
548
+ "unevaluatedProperties": false
549
+ },
550
+ "sieve_least": {
551
+ "description": "A number of the table above the given one is left, none on a hole; the key is the greatest the least such number grows to as the widths are counted out. The scene allows the operation sieve, and a number of the table is left once every width is counted out.",
552
+ "type": "object",
553
+ "properties": {
554
+ "above": {
555
+ "description": "The number the numbers left lie above; any number of the table by default.",
556
+ "type": "integer",
557
+ "minimum": 0,
558
+ "maximum": 10674
559
+ }
560
+ },
561
+ "unevaluatedProperties": false
562
+ },
563
+ "path_to": {
564
+ "description": "The path ends on the cell, never the one it starts on, and passes every cell of through on its way; the key is the fewest steps. The scene allows the operation path.",
565
+ "type": "object",
566
+ "properties": {
567
+ "cell": {
568
+ "description": "The cell the path ends on, not a hole.",
569
+ "$ref": "#/$defs/cell"
570
+ },
571
+ "through": {
572
+ "description": "The cells the path passes on its way, none of them a hole, none named twice.",
573
+ "type": "array",
574
+ "items": {
575
+ "description": "A cell the path passes.",
576
+ "$ref": "#/$defs/cell"
577
+ },
578
+ "minItems": 1,
579
+ "uniqueItems": true
580
+ }
581
+ },
582
+ "required": [
583
+ "cell"
584
+ ],
585
+ "unevaluatedProperties": false
586
+ },
587
+ "path_count": {
588
+ "description": "The path ends on the cell, never the one it starts on, and passes every cell of through on its way; the key counts such paths. The scene allows the operation path alone, so that its states are the paths.",
589
+ "type": "object",
590
+ "properties": {
591
+ "cell": {
592
+ "description": "The cell the path ends on, not a hole.",
593
+ "$ref": "#/$defs/cell"
594
+ },
595
+ "through": {
596
+ "description": "The cells the path passes on its way, none of them a hole, none named twice.",
597
+ "type": "array",
598
+ "items": {
599
+ "description": "A cell the path passes.",
600
+ "$ref": "#/$defs/cell"
601
+ },
602
+ "minItems": 1,
603
+ "uniqueItems": true
604
+ }
605
+ },
606
+ "required": [
607
+ "cell"
608
+ ],
609
+ "unevaluatedProperties": false
610
+ },
611
+ "path_closed": {
612
+ "description": "The path is closed into a route, back on its first cell; the key is the most cells such a route visits. The scene allows the operation path.",
613
+ "type": "object",
614
+ "unevaluatedProperties": false
615
+ },
616
+ "parts": {
617
+ "description": "Met by every state; the key is the most parts the sheet is in, a part the cells joined across sides that no cut, no wall and no hole parts. On a sheet only to look at, its one state's parts.",
618
+ "type": "object",
619
+ "unevaluatedProperties": false
620
+ },
621
+ "cut_ways": {
622
+ "description": "The sheet is cut into as many parts as named, each of as many cells, every side cut lying between two parts; the key counts the ways, two ways one where they part the same cells. The scene allows the operation cut alone, so that its states are the ways.",
623
+ "type": "object",
624
+ "properties": {
625
+ "parts": {
626
+ "description": "How many parts, at least 2; the cells that are no hole divide by it.",
627
+ "type": "integer",
628
+ "minimum": 2,
629
+ "maximum": 676
630
+ }
631
+ },
632
+ "required": [
633
+ "parts"
634
+ ],
635
+ "unevaluatedProperties": false
636
+ },
637
+ "cells_apart": {
638
+ "description": "Every cell that is no hole is a part of its own; the key is the fewest cuts. The scene allows the operation cut.",
639
+ "type": "object",
640
+ "unevaluatedProperties": false
641
+ },
642
+ "nodes": {
643
+ "description": "Met by every state; the key is the count of the nodes of the grid, the corners of the cells that are no hole, each once, the most there are. On a sheet only to look at, its one state's.",
644
+ "type": "object",
645
+ "properties": {
646
+ "edge": {
647
+ "description": "Only those on an edge: the sheet's own, a hole's, a wall or a side cut. Every one where left out.",
648
+ "type": "boolean"
649
+ }
650
+ },
651
+ "unevaluatedProperties": false
652
+ },
653
+ "sides": {
654
+ "description": "Met by every state; the key is the count of the sides of the cells that are no hole, each once, the most there are. On a sheet only to look at, its one state's.",
655
+ "type": "object",
656
+ "properties": {
657
+ "edge": {
658
+ "description": "Only those on an edge: the sheet's own, a hole's, a wall or a side cut. Every one where left out.",
659
+ "type": "boolean"
660
+ }
661
+ },
662
+ "unevaluatedProperties": false
663
+ },
664
+ "polyomino_cover": {
665
+ "description": "The figures cover every cell that is no hole; the key is the fewest figures laid. The scene allows the operation polyomino.",
666
+ "type": "object",
667
+ "unevaluatedProperties": false
668
+ },
669
+ "polyomino_tilings": {
670
+ "description": "The figures cover every cell that is no hole; the key counts the ways, two ways one where their figures cover the same cells. The scene allows the operation polyomino alone, so that its states are the figures.",
671
+ "type": "object",
672
+ "unevaluatedProperties": false
673
+ },
674
+ "polyomino_most": {
675
+ "description": "Met by every state; the key is the most figures that lie on the sheet at once. The scene allows the operation polyomino.",
676
+ "type": "object",
677
+ "unevaluatedProperties": false
678
+ },
679
+ "polyomino_empty": {
680
+ "description": "Met by every state; the key is the fewest cells that are no hole and no figure covers. The scene allows the operation polyomino.",
681
+ "type": "object",
682
+ "unevaluatedProperties": false
683
+ },
684
+ "polyomino_placings": {
685
+ "description": "One figure lies on the sheet; the key counts the places it may lie on, two places one where they cover the same cells. The scene allows the operation polyomino alone, so that its states are the figures.",
686
+ "type": "object",
687
+ "unevaluatedProperties": false
688
+ },
689
+ "polyomino_shapes": {
690
+ "description": "One figure lies on the sheet; the key counts its shapes, two figures one shape where one moved, turned or turned over lies on the other. The scene allows the operation polyomino alone, so that its states are the figures.",
691
+ "type": "object",
692
+ "unevaluatedProperties": false
243
693
  }
244
694
  },
245
695
  "minProperties": 1,
@@ -258,8 +708,18 @@
258
708
  "type": "string",
259
709
  "pattern": "^[A-Z]([1-9]|1[0-9]|2[0-6])$"
260
710
  },
711
+ "side": {
712
+ "description": "A side of a cell by its line and the row or column it lies beside: v0 to v26 the vertical lines from the sheet's left edge, a side on one named by its row's letter, as v2:B between B2 and B3; h0 to h26 the horizontal lines from its top edge, a side on one named by its column's number, as h1:3 between A3 and B3.",
713
+ "type": "string",
714
+ "pattern": "^(v(0|[1-9]|1[0-9]|2[0-6]):[A-Z]|h(0|[1-9]|1[0-9]|2[0-6]):([1-9]|1[0-9]|2[0-6]))$"
715
+ },
716
+ "node": {
717
+ "description": "A node of the grid, where a vertical line crosses a horizontal one, by the two lines, as v2:h1, the corner A2, A3, B2 and B3 share; v0 is the sheet's left edge, h0 its top edge.",
718
+ "type": "string",
719
+ "pattern": "^v(0|[1-9]|1[0-9]|2[0-6]):h(0|[1-9]|1[0-9]|2[0-6])$"
720
+ },
261
721
  "mark": {
262
- "description": "What a cell carries: a colour, a whole number written in it, or both.",
722
+ "description": "What a cell, a node or a side carries: a colour, a whole number written in it, or both.",
263
723
  "type": "object",
264
724
  "properties": {
265
725
  "color": {
@@ -293,7 +753,7 @@
293
753
  }
294
754
  },
295
755
  "sheet": {
296
- "description": "Rows and columns of cells, the cells cut out, the walls between cells, and the marks the cells carry.",
756
+ "description": "Rows and columns of cells, the cells cut out, the walls between cells, and the marks the cells, the nodes of the grid and the sides of cells carry.",
297
757
  "type": "object",
298
758
  "properties": {
299
759
  "rows": {
@@ -340,6 +800,46 @@
340
800
  "marks": {
341
801
  "description": "The marks the cells carry at the scene's start, none on a hole.",
342
802
  "$ref": "#/$defs/marks"
803
+ },
804
+ "node_marks": {
805
+ "description": "The marks the scene gives nodes of the grid, each by the node's name, none at a node with only holes beside it; no move changes them.",
806
+ "type": "object",
807
+ "propertyNames": {
808
+ "$ref": "#/$defs/node"
809
+ },
810
+ "additionalProperties": {
811
+ "description": "The mark of the place.",
812
+ "$ref": "#/$defs/mark",
813
+ "unevaluatedProperties": false
814
+ }
815
+ },
816
+ "side_marks": {
817
+ "description": "The marks the scene gives sides of cells, each by the side's name, none on a side with only holes beside it; no move changes them.",
818
+ "type": "object",
819
+ "propertyNames": {
820
+ "$ref": "#/$defs/side"
821
+ },
822
+ "additionalProperties": {
823
+ "description": "The mark of the place.",
824
+ "$ref": "#/$defs/mark",
825
+ "unevaluatedProperties": false
826
+ }
827
+ },
828
+ "numbers": {
829
+ "description": "The sheet as a table of numbers: its cells numbered in reading order, A1 the first number, each next cell the next number, a hole too, though nothing lies on it; a row of the table is a row of the sheet.",
830
+ "type": "object",
831
+ "properties": {
832
+ "first": {
833
+ "description": "The number A1 holds.",
834
+ "type": "integer",
835
+ "minimum": 0,
836
+ "maximum": 9999
837
+ }
838
+ },
839
+ "required": [
840
+ "first"
841
+ ],
842
+ "unevaluatedProperties": false
343
843
  }
344
844
  },
345
845
  "required": [
@@ -469,6 +969,107 @@
469
969
  "minProperties": 1,
470
970
  "maxProperties": 1,
471
971
  "unevaluatedProperties": false
972
+ },
973
+ "counter": {
974
+ "description": "A move of the counter by one of its steps, to the cell it lands on.",
975
+ "type": "object",
976
+ "properties": {
977
+ "to": {
978
+ "description": "The cell the counter goes to.",
979
+ "$ref": "#/$defs/cell"
980
+ }
981
+ },
982
+ "required": [
983
+ "to"
984
+ ],
985
+ "unevaluatedProperties": false
986
+ },
987
+ "sieve": {
988
+ "description": "The numbers counted out by one of the widths.",
989
+ "type": "object",
990
+ "properties": {
991
+ "by": {
992
+ "description": "The width.",
993
+ "type": "integer",
994
+ "minimum": 2,
995
+ "maximum": 10674
996
+ }
997
+ },
998
+ "required": [
999
+ "by"
1000
+ ],
1001
+ "unevaluatedProperties": false
1002
+ },
1003
+ "path": {
1004
+ "description": "A step of the path onto a cell beside its last one.",
1005
+ "type": "object",
1006
+ "properties": {
1007
+ "to": {
1008
+ "description": "The cell the path steps onto.",
1009
+ "$ref": "#/$defs/cell"
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "to"
1014
+ ],
1015
+ "unevaluatedProperties": false
1016
+ },
1017
+ "cut": {
1018
+ "description": "A cut from a side between two cells, run as the scene has it.",
1019
+ "type": "object",
1020
+ "properties": {
1021
+ "side": {
1022
+ "description": "The side the cut starts from.",
1023
+ "$ref": "#/$defs/side"
1024
+ }
1025
+ },
1026
+ "required": [
1027
+ "side"
1028
+ ],
1029
+ "unevaluatedProperties": false
1030
+ },
1031
+ "polyomino": {
1032
+ "description": "A figure laid, or a figure lifted.",
1033
+ "type": "object",
1034
+ "properties": {
1035
+ "lay": {
1036
+ "description": "A figure laid on the cells it covers.",
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "cells": {
1040
+ "description": "The cells the figure covers, in any order.",
1041
+ "type": "array",
1042
+ "items": {
1043
+ "description": "A cell the figure covers.",
1044
+ "$ref": "#/$defs/cell"
1045
+ },
1046
+ "minItems": 1,
1047
+ "uniqueItems": true
1048
+ }
1049
+ },
1050
+ "required": [
1051
+ "cells"
1052
+ ],
1053
+ "unevaluatedProperties": false
1054
+ },
1055
+ "lift": {
1056
+ "description": "The figure lifted off the cell it covers.",
1057
+ "type": "object",
1058
+ "properties": {
1059
+ "cell": {
1060
+ "description": "A cell the figure covers.",
1061
+ "$ref": "#/$defs/cell"
1062
+ }
1063
+ },
1064
+ "required": [
1065
+ "cell"
1066
+ ],
1067
+ "unevaluatedProperties": false
1068
+ }
1069
+ },
1070
+ "minProperties": 1,
1071
+ "maxProperties": 1,
1072
+ "unevaluatedProperties": false
472
1073
  }
473
1074
  },
474
1075
  "minProperties": 1,
@@ -523,6 +1124,53 @@
523
1124
  "minProperties": 1,
524
1125
  "maxProperties": 1,
525
1126
  "unevaluatedProperties": false
1127
+ },
1128
+ "counter_at": {
1129
+ "description": "The cell the counter stands on.",
1130
+ "$ref": "#/$defs/cell"
1131
+ },
1132
+ "sieve": {
1133
+ "description": "The widths the numbers have been counted out by, ascending.",
1134
+ "type": "array",
1135
+ "items": {
1136
+ "description": "A width.",
1137
+ "type": "integer",
1138
+ "minimum": 2,
1139
+ "maximum": 10674
1140
+ },
1141
+ "uniqueItems": true
1142
+ },
1143
+ "path": {
1144
+ "description": "The cells the path visits, in order from its first; a route is closed where its last cell is its first.",
1145
+ "type": "array",
1146
+ "items": {
1147
+ "description": "A cell the path visits.",
1148
+ "$ref": "#/$defs/cell"
1149
+ },
1150
+ "minItems": 1
1151
+ },
1152
+ "cut": {
1153
+ "description": "The sides cut, each once: the vertical lines' from the left, each from the top, then the horizontal lines' from the top, each from the left.",
1154
+ "type": "array",
1155
+ "items": {
1156
+ "description": "A side cut.",
1157
+ "$ref": "#/$defs/side"
1158
+ },
1159
+ "uniqueItems": true
1160
+ },
1161
+ "polyomino": {
1162
+ "description": "The figures laid, each by the cells it covers in reading order, ordered by their first cells.",
1163
+ "type": "array",
1164
+ "items": {
1165
+ "description": "A figure laid.",
1166
+ "type": "array",
1167
+ "items": {
1168
+ "description": "A cell the figure covers.",
1169
+ "$ref": "#/$defs/cell"
1170
+ },
1171
+ "minItems": 1,
1172
+ "uniqueItems": true
1173
+ }
526
1174
  }
527
1175
  },
528
1176
  "required": [