@openbooknetwork/hesap 0.2.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbooknetwork/hesap",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Hesap: the maths engine of the Open Book Network, figures a reader can move with the numbers and formulas that follow them",
6
6
  "keywords": [
@@ -40,7 +40,7 @@
40
40
  "prepublishOnly": "npm test"
41
41
  },
42
42
  "dependencies": {
43
- "@openbooknetwork/kitap": "^0.7.2",
43
+ "@openbooknetwork/kitap": "^0.7.7",
44
44
  "animejs": "^4.5.0",
45
45
  "katex": "^0.19.1"
46
46
  }
package/src/client.css CHANGED
@@ -210,7 +210,7 @@ aside.story .place[data-formula] .katex-display>.katex{text-align:start}
210
210
  .hesap-counters .counters-tag-text{font-size:12px;font-weight:700}
211
211
  .hesap-counters .counters-pale .counters-body{fill:var(--panel);stroke:var(--rule)}
212
212
  .hesap-counters .counters-pale .counters-ring{display:none}
213
- .hesap-counters .counters-marked .counters-body{stroke:var(--accent);stroke-width:3.5}
213
+ .hesap-counters .counters-marked .counters-body{stroke:var(--ink);stroke-width:3.5}
214
214
  .hesap-counters .counters-gap{fill:none;stroke:var(--rule);stroke-width:2;stroke-dasharray:4 3;opacity:0;pointer-events:none;outline:none}
215
215
  .hesap-counters .counters-gap-on{opacity:1;pointer-events:all;cursor:pointer}
216
216
  .hesap-counters .counters-gap-on:focus-visible{stroke:var(--accent);stroke-width:3}
@@ -238,3 +238,91 @@ aside.story .place[data-formula] .katex-display>.katex{text-align:start}
238
238
  .hesap-counters .counters-kerb{stroke:var(--ink-2);stroke-width:3}
239
239
  .hesap-counters .counters-stairs{fill:var(--panel);stroke:var(--ink-2);stroke-width:2;stroke-linejoin:round}
240
240
  .hesap-counters .counters-step-num{font-size:11px;font-weight:600;fill:var(--ink-2)}
241
+
242
+ /* The match scene: the pair lines, the ring on a counter without a partner, the words between the rows, and the
243
+ cups and saucers. */
244
+ .hesap-counters .counters-wire{stroke:var(--ink);stroke-width:3;stroke-linecap:round}
245
+ .hesap-counters .counters-rubber{stroke:var(--accent);stroke-width:3;stroke-linecap:round;pointer-events:none}
246
+ .hesap-counters .counters-lone{fill:none;stroke:var(--ink);stroke-width:3;pointer-events:none}
247
+ .hesap-counters .counters-picked .counters-body{stroke:var(--ink);stroke-width:3}
248
+ .hesap-counters .counters-word{pointer-events:none}
249
+ .hesap-counters .counters-word-box{fill:var(--paper);stroke:var(--accent);stroke-width:2}
250
+ .hesap-counters .counters-word-text{font-size:17px;font-weight:700}
251
+ .hesap-counters .counters-handle{fill:none;stroke:var(--c);stroke-width:3.5;stroke-linecap:round}
252
+ .hesap-counters .counters-saucer .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:2.5}
253
+ .hesap-counters .counters-well{fill:none;stroke:var(--c);stroke-width:1.5;opacity:.5}
254
+ .hesap-counters .counters-rowtag{pointer-events:none}
255
+ .hesap-counters .counters-rowtag-box{fill:var(--paper);stroke:var(--c);stroke-width:2}
256
+ .hesap-counters .counters-rowtag-text{font-size:15px;font-weight:700;stroke:none}
257
+ .hesap-counters .counters-rowtag.counters-hot .counters-rowtag-box{stroke:var(--accent);stroke-width:3}
258
+ .hesap-counters .counters-hollow .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:3}
259
+ .hesap-counters .counters-hollow .counters-ring{display:none}
260
+ .hesap-counters .counters-void{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3}
261
+ .hesap-counters .counters-chair .counters-legs{stroke:var(--c);stroke-width:3.5}
262
+ .hesap-counters .counters-crown{fill:#d99a1f;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;pointer-events:none}
263
+ .hesap-counters .counters-sway{animation:counters-sway 1.1s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
264
+ @keyframes counters-sway{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
265
+ .hesap-counters .counters-row-name{font-size:20px;font-weight:600;fill:var(--ink-2);text-anchor:start}
266
+
267
+ /* The tiles of a sides page: the number, with the number before and the number after to tap. */
268
+ .hesap-counters .counters-tile-box{fill:var(--panel);stroke:var(--rule);stroke-width:2}
269
+ .hesap-counters .counters-tile-num{font-size:24px;font-weight:700;fill:var(--ink-2)}
270
+ .hesap-counters .counters-tile-main{font-size:34px;fill:var(--ink)}
271
+ .hesap-counters .counters-tile-word{font-size:13px;font-weight:600;fill:var(--ink-2)}
272
+ .hesap-counters .counters-tile-open{cursor:pointer;outline:none}
273
+ .hesap-counters .counters-tile-open .counters-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
274
+ .hesap-counters .counters-tile-open .counters-tile-num{fill:var(--ink)}
275
+ .hesap-counters .counters-tile-open:focus-visible .counters-tile-box,.hesap-counters .counters-tile.counters-hot .counters-tile-box{stroke:var(--accent);stroke-width:4}
276
+ .hesap-counters .counters-tile.counters-hot{stroke:none}
277
+ .hesap-counters .counters-next{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3;pointer-events:none}
278
+ .hesap-counters .counters-row-name.counters-hot{stroke:none;fill:var(--accent)}
279
+
280
+ /* The order scene: markers on one count, blocks of rows of ten, the line of words and the number cards. */
281
+ .hesap-counters .counters-reading{font-size:22px;font-weight:700}
282
+ .hesap-counters .counters-reading.counters-hot,.hesap-counters .counters-block-num.counters-hot{stroke:none;fill:var(--accent)}
283
+ .hesap-counters .counters-both .counters-body{fill:var(--ink-2)}
284
+ .hesap-counters .counters-light{opacity:.5}
285
+ .hesap-counters .counters-pin{pointer-events:none}
286
+ .hesap-counters .counters-pin-ring{fill:none;stroke:var(--c);stroke-width:3;pointer-events:none}
287
+ .hesap-counters .counters-pin-box{fill:var(--c);stroke:var(--paper);stroke-width:1.5}
288
+ .hesap-counters .counters-pin-num{font-size:13px;font-weight:700;fill:#fff}
289
+ .hesap-counters .counters-pin.counters-hot{stroke:none}
290
+ .hesap-counters .counters-pin.counters-hot .counters-pin-box{stroke:var(--accent);stroke-width:3}
291
+ .hesap-counters .counters-block-num{font-size:32px;font-weight:700;fill:var(--c)}
292
+ .hesap-counters .counters-decide{fill:none;stroke:var(--accent);stroke-width:3.5;pointer-events:none}
293
+ .hesap-counters .counters-cover rect{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
294
+ .hesap-counters .counters-cover-mark{font-size:64px;font-weight:700;fill:var(--ink-2)}
295
+ .hesap-counters .counters-card-box{fill:var(--paper);stroke:var(--ink);stroke-width:2}
296
+ .hesap-counters .counters-card:focus-visible .counters-card-box{stroke:var(--accent);stroke-width:3.5}
297
+ .hesap-counters .counters-card-num{font-size:26px;font-weight:700}
298
+ .hesap-counters .counters-mini{fill:var(--z-counters-blue,#2a6bd1)}
299
+ .hesap-counters .counters-place{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:6 5}
300
+ .hesap-counters .counters-place-word{font-size:16px;font-weight:600;fill:var(--ink-2)}
301
+ .hesap-counters .counters-between{font-size:14px;font-weight:700}
302
+ .hesap-counters .counters-tick{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
303
+
304
+ /* A line of two numbers with a sign: the sign tile, the mark that says true or false, and the scoreboard. */
305
+ .hesap-counters .counters-line-num{font-size:34px;font-weight:700;fill:var(--c)}
306
+ .hesap-counters .counters-line-num.counters-hot{stroke:none;text-decoration:underline}
307
+ .hesap-counters .counters-sign-tile-box{fill:none;stroke:none}
308
+ .hesap-counters .counters-sign-tile-text{font-size:36px;font-weight:700}
309
+ .hesap-counters .counters-sign-tile-open{cursor:pointer;outline:none}
310
+ .hesap-counters .counters-sign-tile-open .counters-sign-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
311
+ .hesap-counters .counters-sign-tile-open:focus-visible .counters-sign-tile-box{stroke:var(--accent);stroke-width:4}
312
+ .hesap-counters .counters-mark{pointer-events:none}
313
+ .hesap-counters .counters-mark.counters-hot{stroke:none}
314
+ .hesap-counters .counters-mark-sign{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
315
+ .hesap-counters .counters-mark-word{font-size:20px;font-weight:700;text-anchor:start}
316
+ .hesap-counters .counters-mark-true .counters-mark-sign{stroke:#2e9d5b}
317
+ .hesap-counters .counters-mark-false .counters-mark-sign{stroke:var(--ink-2)}
318
+ .hesap-counters .counters-mark-false .counters-mark-word{fill:var(--ink-2)}
319
+ .hesap-counters .counters-board{fill:var(--panel);stroke:var(--ink);stroke-width:3}
320
+ .hesap-counters .counters-team{font-size:18px;font-weight:700;fill:var(--c)}
321
+ .hesap-counters .counters-score{font-size:60px;font-weight:700}
322
+ .hesap-counters .counters-score.counters-hot{stroke:none;fill:var(--accent)}
323
+ .hesap-counters .counters-score-sign{font-size:44px;font-weight:700}
324
+ .hesap-counters .counters-patch{fill:var(--paper);opacity:.85}
325
+ .hesap-counters .counters-chip-wide{flex:1 0 100%}
326
+ .hesap-counters .counters-line-card{fill:var(--panel);stroke:var(--c);stroke-width:2}
327
+ .hesap-counters .counters-added .counters-ring{display:none}
328
+ .hesap-counters .counters-plus{fill:none;stroke:var(--paper);stroke-width:4;stroke-linecap:round;pointer-events:none}
@@ -120,7 +120,7 @@
120
120
  .hesap-counters .counters-tag-text{font-size:12px;font-weight:700}
121
121
  .hesap-counters .counters-pale .counters-body{fill:var(--panel);stroke:var(--rule)}
122
122
  .hesap-counters .counters-pale .counters-ring{display:none}
123
- .hesap-counters .counters-marked .counters-body{stroke:var(--accent);stroke-width:3.5}
123
+ .hesap-counters .counters-marked .counters-body{stroke:var(--ink);stroke-width:3.5}
124
124
  .hesap-counters .counters-gap{fill:none;stroke:var(--rule);stroke-width:2;stroke-dasharray:4 3;opacity:0;pointer-events:none;outline:none}
125
125
  .hesap-counters .counters-gap-on{opacity:1;pointer-events:all;cursor:pointer}
126
126
  .hesap-counters .counters-gap-on:focus-visible{stroke:var(--accent);stroke-width:3}
@@ -148,3 +148,91 @@
148
148
  .hesap-counters .counters-kerb{stroke:var(--ink-2);stroke-width:3}
149
149
  .hesap-counters .counters-stairs{fill:var(--panel);stroke:var(--ink-2);stroke-width:2;stroke-linejoin:round}
150
150
  .hesap-counters .counters-step-num{font-size:11px;font-weight:600;fill:var(--ink-2)}
151
+
152
+ /* The match scene: the pair lines, the ring on a counter without a partner, the words between the rows, and the
153
+ cups and saucers. */
154
+ .hesap-counters .counters-wire{stroke:var(--ink);stroke-width:3;stroke-linecap:round}
155
+ .hesap-counters .counters-rubber{stroke:var(--accent);stroke-width:3;stroke-linecap:round;pointer-events:none}
156
+ .hesap-counters .counters-lone{fill:none;stroke:var(--ink);stroke-width:3;pointer-events:none}
157
+ .hesap-counters .counters-picked .counters-body{stroke:var(--ink);stroke-width:3}
158
+ .hesap-counters .counters-word{pointer-events:none}
159
+ .hesap-counters .counters-word-box{fill:var(--paper);stroke:var(--accent);stroke-width:2}
160
+ .hesap-counters .counters-word-text{font-size:17px;font-weight:700}
161
+ .hesap-counters .counters-handle{fill:none;stroke:var(--c);stroke-width:3.5;stroke-linecap:round}
162
+ .hesap-counters .counters-saucer .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:2.5}
163
+ .hesap-counters .counters-well{fill:none;stroke:var(--c);stroke-width:1.5;opacity:.5}
164
+ .hesap-counters .counters-rowtag{pointer-events:none}
165
+ .hesap-counters .counters-rowtag-box{fill:var(--paper);stroke:var(--c);stroke-width:2}
166
+ .hesap-counters .counters-rowtag-text{font-size:15px;font-weight:700;stroke:none}
167
+ .hesap-counters .counters-rowtag.counters-hot .counters-rowtag-box{stroke:var(--accent);stroke-width:3}
168
+ .hesap-counters .counters-hollow .counters-body{fill:var(--paper);stroke:var(--c);stroke-width:3}
169
+ .hesap-counters .counters-hollow .counters-ring{display:none}
170
+ .hesap-counters .counters-void{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3}
171
+ .hesap-counters .counters-chair .counters-legs{stroke:var(--c);stroke-width:3.5}
172
+ .hesap-counters .counters-crown{fill:#d99a1f;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;pointer-events:none}
173
+ .hesap-counters .counters-sway{animation:counters-sway 1.1s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:50% 100%}
174
+ @keyframes counters-sway{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
175
+ .hesap-counters .counters-row-name{font-size:20px;font-weight:600;fill:var(--ink-2);text-anchor:start}
176
+
177
+ /* The tiles of a sides page: the number, with the number before and the number after to tap. */
178
+ .hesap-counters .counters-tile-box{fill:var(--panel);stroke:var(--rule);stroke-width:2}
179
+ .hesap-counters .counters-tile-num{font-size:24px;font-weight:700;fill:var(--ink-2)}
180
+ .hesap-counters .counters-tile-main{font-size:34px;fill:var(--ink)}
181
+ .hesap-counters .counters-tile-word{font-size:13px;font-weight:600;fill:var(--ink-2)}
182
+ .hesap-counters .counters-tile-open{cursor:pointer;outline:none}
183
+ .hesap-counters .counters-tile-open .counters-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
184
+ .hesap-counters .counters-tile-open .counters-tile-num{fill:var(--ink)}
185
+ .hesap-counters .counters-tile-open:focus-visible .counters-tile-box,.hesap-counters .counters-tile.counters-hot .counters-tile-box{stroke:var(--accent);stroke-width:4}
186
+ .hesap-counters .counters-tile.counters-hot{stroke:none}
187
+ .hesap-counters .counters-next{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:4 3;pointer-events:none}
188
+ .hesap-counters .counters-row-name.counters-hot{stroke:none;fill:var(--accent)}
189
+
190
+ /* The order scene: markers on one count, blocks of rows of ten, the line of words and the number cards. */
191
+ .hesap-counters .counters-reading{font-size:22px;font-weight:700}
192
+ .hesap-counters .counters-reading.counters-hot,.hesap-counters .counters-block-num.counters-hot{stroke:none;fill:var(--accent)}
193
+ .hesap-counters .counters-both .counters-body{fill:var(--ink-2)}
194
+ .hesap-counters .counters-light{opacity:.5}
195
+ .hesap-counters .counters-pin{pointer-events:none}
196
+ .hesap-counters .counters-pin-ring{fill:none;stroke:var(--c);stroke-width:3;pointer-events:none}
197
+ .hesap-counters .counters-pin-box{fill:var(--c);stroke:var(--paper);stroke-width:1.5}
198
+ .hesap-counters .counters-pin-num{font-size:13px;font-weight:700;fill:#fff}
199
+ .hesap-counters .counters-pin.counters-hot{stroke:none}
200
+ .hesap-counters .counters-pin.counters-hot .counters-pin-box{stroke:var(--accent);stroke-width:3}
201
+ .hesap-counters .counters-block-num{font-size:32px;font-weight:700;fill:var(--c)}
202
+ .hesap-counters .counters-decide{fill:none;stroke:var(--accent);stroke-width:3.5;pointer-events:none}
203
+ .hesap-counters .counters-cover rect{fill:var(--panel);stroke:var(--ink-2);stroke-width:2}
204
+ .hesap-counters .counters-cover-mark{font-size:64px;font-weight:700;fill:var(--ink-2)}
205
+ .hesap-counters .counters-card-box{fill:var(--paper);stroke:var(--ink);stroke-width:2}
206
+ .hesap-counters .counters-card:focus-visible .counters-card-box{stroke:var(--accent);stroke-width:3.5}
207
+ .hesap-counters .counters-card-num{font-size:26px;font-weight:700}
208
+ .hesap-counters .counters-mini{fill:var(--z-counters-blue,#2a6bd1)}
209
+ .hesap-counters .counters-place{fill:none;stroke:var(--ink-2);stroke-width:2;stroke-dasharray:6 5}
210
+ .hesap-counters .counters-place-word{font-size:16px;font-weight:600;fill:var(--ink-2)}
211
+ .hesap-counters .counters-between{font-size:14px;font-weight:700}
212
+ .hesap-counters .counters-tick{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
213
+
214
+ /* A line of two numbers with a sign: the sign tile, the mark that says true or false, and the scoreboard. */
215
+ .hesap-counters .counters-line-num{font-size:34px;font-weight:700;fill:var(--c)}
216
+ .hesap-counters .counters-line-num.counters-hot{stroke:none;text-decoration:underline}
217
+ .hesap-counters .counters-sign-tile-box{fill:none;stroke:none}
218
+ .hesap-counters .counters-sign-tile-text{font-size:36px;font-weight:700}
219
+ .hesap-counters .counters-sign-tile-open{cursor:pointer;outline:none}
220
+ .hesap-counters .counters-sign-tile-open .counters-sign-tile-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
221
+ .hesap-counters .counters-sign-tile-open:focus-visible .counters-sign-tile-box{stroke:var(--accent);stroke-width:4}
222
+ .hesap-counters .counters-mark{pointer-events:none}
223
+ .hesap-counters .counters-mark.counters-hot{stroke:none}
224
+ .hesap-counters .counters-mark-sign{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
225
+ .hesap-counters .counters-mark-word{font-size:20px;font-weight:700;text-anchor:start}
226
+ .hesap-counters .counters-mark-true .counters-mark-sign{stroke:#2e9d5b}
227
+ .hesap-counters .counters-mark-false .counters-mark-sign{stroke:var(--ink-2)}
228
+ .hesap-counters .counters-mark-false .counters-mark-word{fill:var(--ink-2)}
229
+ .hesap-counters .counters-board{fill:var(--panel);stroke:var(--ink);stroke-width:3}
230
+ .hesap-counters .counters-team{font-size:18px;font-weight:700;fill:var(--c)}
231
+ .hesap-counters .counters-score{font-size:60px;font-weight:700}
232
+ .hesap-counters .counters-score.counters-hot{stroke:none;fill:var(--accent)}
233
+ .hesap-counters .counters-score-sign{font-size:44px;font-weight:700}
234
+ .hesap-counters .counters-patch{fill:var(--paper);opacity:.85}
235
+ .hesap-counters .counters-chip-wide{flex:1 0 100%}
236
+ .hesap-counters .counters-line-card{fill:var(--panel);stroke:var(--c);stroke-width:2}
237
+ .hesap-counters .counters-added .counters-ring{display:none}
238
+ .hesap-counters .counters-plus{fill:none;stroke:var(--paper);stroke-width:4;stroke-linecap:round;pointer-events:none}
@@ -2,21 +2,18 @@
2
2
  // family's counters, ten frames, places and motion.
3
3
  import bonds from './bonds.js';
4
4
  import count from './count.js';
5
+ import match from './match.js';
6
+ import order from './order.js';
7
+ import { scenes } from './scenes.js';
5
8
 
6
- const SCENES = { bonds, count };
9
+ const SCENES = { bonds, count, match, order };
7
10
 
8
11
  export default function counters(api) {
9
- // made holds each scene once it has been made, and now is the scene on show.
10
- const made = {};
11
- let now = null;
12
+ const all = scenes(Object.fromEntries(Object.entries(SCENES).map(([name, make]) => [name, () => make(api)])), api.stage);
12
13
  return {
13
- show(spec, page) {
14
- const next = made[spec.scene] ??= SCENES[spec.scene](api);
15
- if (now && now !== next) now.hide();
16
- now = next; now.show(spec, page);
17
- },
18
- hide() { now?.hide(); now = null; },
19
- point(id, on) { now?.point(id, on); },
20
- lang() { now?.lang(); },
14
+ show(spec, page) { all.show(spec.scene, spec, page); },
15
+ hide() { all.hide(); },
16
+ point(id, on) { all.now()?.point(id, on); },
17
+ lang() { all.now()?.lang(); },
21
18
  };
22
19
  }
@@ -59,12 +59,16 @@ function line(look, n) {
59
59
  } }];
60
60
  }
61
61
 
62
+ // tenPlace gives the place of counter i in rows of ten, with a gap after the fifth of each row. Every scene that
63
+ // lays a number out in rows of ten places its counters here.
64
+ export const tenPlace = (i, gap = ROW, five = FIVE) => ({ x: (i % 10 + 0.5) * gap + (i % 10 >= 5 ? five : 0), y: (Math.floor(i / 10) + 0.5) * gap });
65
+
62
66
  // rows stands n counters in rows of ten, with a gap after the fifth of each row and the count of each full row at
63
- // its end.
67
+ // its end. tray is the width of the tray alone, without the counts.
64
68
  export function rows(n) {
65
69
  const lines = Math.ceil(n / 10), inner = 10 * ROW + FIVE, w = inner + 62, h = lines * ROW + 16;
66
- return [{ w, h, draw(x, y) {
67
- const ox = x + 8, oy = y + 8, spots = Array.from({ length: n }, (_, i) => ({ x: ox + (i % 10 + 0.5) * ROW + (i % 10 >= 5 ? FIVE : 0), y: oy + (Math.floor(i / 10) + 0.5) * ROW }));
70
+ return [{ w, h, tray: inner + 16, draw(x, y) {
71
+ const ox = x + 8, oy = y + 8, spots = Array.from({ length: n }, (_, i) => { const p = tenPlace(i); return { x: ox + p.x, y: oy + p.y }; });
68
72
  const labels = [];
69
73
  for (let k = 1; k <= lines; k++) if (n >= 10 * k) labels.push({ t: txt('counters-row-label', ox + inner + 32, oy + (k - 0.5) * ROW), n: 10 * k });
70
74
  const nodes = [el('rect', { class: 'counters-tray', x, y, width: inner + 16, height: h, rx: 10 }), ...labels.map(l => l.t)];
@@ -72,6 +76,22 @@ export function rows(n) {
72
76
  } }];
73
77
  }
74
78
 
79
+ // sides is a strip of three tiles: the number before, the number in larger type and the number after. The outer
80
+ // tiles carry the words less and more and take a tap.
81
+ export function sides(less, more) {
82
+ const tw = 92, th = 62, mid = 104, gap = 12, w = 2 * tw + mid + 2 * gap, h = th + 30;
83
+ return [{ w, h, draw(x, y) {
84
+ const tile = (id, tx, wide, words) => {
85
+ const box = el('rect', { class: 'counters-tile-box', x: tx, y: y + 22, width: wide, height: th, rx: 10 });
86
+ const num = txt(`counters-tile-num${id === 'count' ? ' counters-tile-main' : ''}`, tx + wide / 2, y + 22 + th / 2 + 2);
87
+ const g = el('g', { class: 'counters-tile', 'data-ref': id }, [box, num, ...(words ? [txt('counters-tile-word', tx + wide / 2, y + 9, words)] : [])]);
88
+ return { g, num };
89
+ };
90
+ const tiles = { before: tile('before', x, tw, less), count: tile('count', x + tw + gap, mid), after: tile('after', x + tw + gap + mid + gap, tw, more) };
91
+ return { nodes: Object.values(tiles).map(t => t.g), refs: { tiles } };
92
+ } }];
93
+ }
94
+
75
95
  // boxRow is a closed box with its number on the front, and room beside it for cap counters in rows of six.
76
96
  export function boxRow(cap) {
77
97
  const bw = 96, bh = 84, cols = Math.min(6, cap), lines = Math.ceil(cap / 6), g = 42, sw = cols * g, sh = lines * g;
@@ -11,10 +11,12 @@ export const ROOM = { tray: 20, stall: 20, sand: 20, wire: 12 };
11
11
  export const SEATS = 12; // The seats of the bus, on two decks.
12
12
  export const STOP = 10; // The people a bus stop holds.
13
13
  export const STEPS = 20; // The steps of the staircase.
14
+ export const SIDES = [1, 99]; // The numbers a sides page steps through, each with a number on either side.
14
15
 
15
16
  // modeOf names what a page does: a world page, a marker in the rows, a pile beside a box, or the page's tap.
16
17
  export function modeOf(spec) {
17
18
  if (spec.look === 'bus' || spec.look === 'stairs') return spec.look;
19
+ if (spec.sides) return 'sides';
18
20
  if (spec.marker != null) return 'marker';
19
21
  if (spec.pile != null) return 'pile';
20
22
  return spec.tap;
@@ -39,6 +41,8 @@ export function counts(spec, s) {
39
41
  const count = s.box + s.said;
40
42
  return { count, total: s.tags.length && s.tags.every(t => t.length === 1) ? count : null };
41
43
  }
44
+ // A sides page shows the number of its counters with the number before and the number after.
45
+ if (mode === 'sides') { const n = s.here.filter(Boolean).length; return { count: n, before: n - 1, after: n + 1 }; }
42
46
  const count = { place: s.last, take: s.here.filter(Boolean).length, marker: s.marker, pile: s.box + s.beside, bus: s.riders, stairs: s.step }[mode];
43
47
  return { count };
44
48
  }
@@ -53,5 +57,6 @@ export function contextOf(spec) {
53
57
  export function measuresOf(spec) {
54
58
  if (spec.challenge) return [];
55
59
  const mode = modeOf(spec);
60
+ if (mode === 'sides') return ['count', 'before', 'after'];
56
61
  return mode === 'tag' || mode === 'again' ? ['count', 'total'] : ['count'];
57
62
  }
@@ -1,11 +1,11 @@
1
1
  // The count scene: objects counted one by one. The reader taps an object to give it the next number, counts on from
2
2
  // a closed box, takes counters out of a tray, steps a marker through rows of ten, fills a bus and climbs a staircase.
3
- import { modeOf, sizeOf, counts, contextOf, measuresOf, SEATS, STEPS } from './count-model.js';
3
+ import { modeOf, sizeOf, counts, contextOf, measuresOf, SEATS, STEPS, SIDES } from './count-model.js';
4
4
  import { COUNT_GOALS, APPLES, LOOSE, countStart } from './count-goals.js';
5
5
  import { another } from './goals.js';
6
6
  import { counter, show, put, R } from './counter.js';
7
7
  import { arrange } from './places.js';
8
- import { place, rows, boxRow, pile, basket, bus, stairs } from './count-figures.js';
8
+ import { place, rows, boxRow, pile, basket, bus, stairs, sides } from './count-figures.js';
9
9
  import { carry, press } from './move.js';
10
10
  import { driver } from './driver.js';
11
11
  import { svg as el, svgPoint } from '../../kit/dom.js';
@@ -85,6 +85,7 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
85
85
  if (mode === 'bus') return [bus(T('stop-sign'))];
86
86
  if (mode === 'stairs') return [stairs()];
87
87
  if (mode === 'pile') return [boxRow(spec.pile), pile(spec.pile, T('pile'))];
88
+ if (mode === 'sides') return [rows(100), sides(T('one-less'), T('one-more'))];
88
89
  if (spec.box != null) return [boxRow(sizeOf(spec))];
89
90
  return [spec.rows ? rows(sizeOf(spec)) : place(spec.look, sizeOf(spec))];
90
91
  }
@@ -103,7 +104,10 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
103
104
  drawn.push(...d.nodes); Object.assign(geo.places, d.places ?? {}); Object.assign(geo.refs, refs); geo.refs.press.push(...presses);
104
105
  }
105
106
  gaps = gapsOf();
106
- back.replaceChildren(...drawn, ...gaps);
107
+ // A sides page outlines the place of the next counter, and a tap on an outer tile steps the group to its number.
108
+ geo.next = modeNow() === 'sides' ? el('circle', { class: 'counters-next', r: R - 2 }) : null;
109
+ for (const [id, by] of [['before', -1], ['after', 1]]) if (geo.refs.tiles) press(geo.refs.tiles[id].g, () => stepTo(s.ids.length + by));
110
+ back.replaceChildren(...drawn, ...gaps, ...(geo.next ? [geo.next] : []));
107
111
  for (const n of nodes.values()) n.tween?.pause();
108
112
  layer.replaceChildren(); nodes = new Map();
109
113
  for (const p of geo.refs.press) press(p, () => { const from = p.dataset.place, id = s.lists[from].at(-1); if (id) moveTo(id, otherOf(from)); });
@@ -171,7 +175,7 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
171
175
  }
172
176
  const mode = modeNow(), fixed = s.ids.includes(id), home = homeOf(id);
173
177
  if (kind === 'walker') return walker(n);
174
- if (mode === 'marker' || spec.counted || (!fixed && !home)) return n;
178
+ if (mode === 'marker' || mode === 'sides' || spec.counted || (!fixed && !home)) return n;
175
179
  n.g.setAttribute('tabindex', 0); n.g.setAttribute('role', 'button'); n.g.setAttribute('aria-label', T(`kind-${kind}`));
176
180
  if (fixed && !spec.drag) { press(n.g, () => tapFixed(id)); return n; }
177
181
  if (home === 'seats' || home === 'stop') { press(n.g, () => moveTo(id, otherOf(homeOf(id)))); return n; }
@@ -226,6 +230,12 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
226
230
  if (to === 'seats') s.seats[s.seats.indexOf(null)] = id; else s.lists[to].push(id);
227
231
  changed();
228
232
  }
233
+ // stepTo sets the group of a sides page to n counters, one more or one fewer than it holds.
234
+ function stepTo(n) {
235
+ if (n < SIDES[0] || n > SIDES[1]) return;
236
+ if (n > s.ids.length) { s.ids.push(`o${seq++}`); s.here.push(true); } else { s.ids.pop(); s.here.pop(); }
237
+ changed();
238
+ }
229
239
  // A change takes back a challenge's check, so the reader checks again.
230
240
  function changed() { if (cs) cs.checked = false; render('move'); }
231
241
 
@@ -250,6 +260,19 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
250
260
  trail.setAttribute('points', path.map(p => `${p.x},${p.y}`).join(' '));
251
261
  if (geo.refs.num) geo.refs.num.textContent = int(s.box);
252
262
  for (const l of geo.refs.labels ?? []) l.t.textContent = int(l.n);
263
+ if (mode === 'sides') {
264
+ // The last counter wears the ring, and the count stands at the end of each full row.
265
+ const n = s.ids.length, p = geo.places.slots.pos(n);
266
+ for (const [id, c] of nodes) c.g.classList.toggle('counters-marked', id === s.ids.at(-1));
267
+ geo.next.setAttribute('cx', p.x); geo.next.setAttribute('cy', p.y);
268
+ for (const l of geo.refs.labels) l.t.setAttribute('display', l.n <= n ? 'inline' : 'none');
269
+ for (const [id, v] of [['before', n - 1], ['count', n], ['after', n + 1]]) {
270
+ const t = geo.refs.tiles[id], open = id !== 'count' && v >= SIDES[0] && v <= SIDES[1];
271
+ if (t.num.textContent !== int(v)) { t.num.textContent = int(v); if (anim) go.flash(t.num); }
272
+ t.g.classList.toggle('counters-tile-open', open);
273
+ for (const [name, val] of [['tabindex', 0], ['role', 'button'], ['aria-label', `${T(id === 'before' ? 'one-less' : 'one-more')}: ${int(v)}`]]) if (open) t.g.setAttribute(name, val); else t.g.removeAttribute(name);
274
+ }
275
+ }
253
276
  }
254
277
  function tag(n, words, anim) {
255
278
  const text = n.tagPop.lastChild;
@@ -1,7 +1,7 @@
1
1
  // The Node half of the count scene: objects counted one by one. It checks a page's fields and says what each link
2
2
  // shows when the page opens.
3
3
  import { schema } from '@openbooknetwork/kitap';
4
- import { COUNT_LOOKS, TAPS, ROOM, STOP, STEPS, modeOf, sizeOf, opening, counts, measuresOf } from './count-model.js';
4
+ import { COUNT_LOOKS, TAPS, ROOM, STOP, STEPS, SIDES, modeOf, sizeOf, opening, counts, measuresOf } from './count-model.js';
5
5
  import { COUNT_GOALS, LOOSE, countStart } from './count-goals.js';
6
6
  import { numbers } from '../../kit/format.js';
7
7
  import { list, challenge, drawn, value } from '../../node.mjs';
@@ -24,6 +24,7 @@ const Fields = z.object({
24
24
  marker: z.union([Int, Stepper]).optional(), // A marker on one counter of the rows.
25
25
  waiting: Int.min(0).max(STOP).optional(), // The people at the bus stop.
26
26
  step: z.union([Int, Stepper]).optional(), // The step of the staircase the walker stands on.
27
+ sides: z.boolean().default(false), // Tiles show the number before and the number after, and a tap steps to one.
27
28
  readout: z.array(z.string()).default([]),
28
29
  // A challenge names a goal of count-goals.js and the ranges it draws its targets from.
29
30
  challenge: z.object({ goal: z.string(), target: Range.optional(), box: Range.optional(), more: Range.optional(),
@@ -34,9 +35,9 @@ const Fields = z.object({
34
35
  const USES = {
35
36
  tag: ['look', 'n', 'rows', 'tap', 'drag', 'clear', 'path', 'counted', 'box'], again: ['look', 'n', 'tap', 'clear'],
36
37
  place: ['look', 'n', 'rows', 'tap'], take: ['look', 'n', 'rows', 'tap'], marker: ['look', 'n', 'rows', 'marker'],
37
- pile: ['look', 'box', 'pile'], bus: ['look', 'n', 'waiting'], stairs: ['look', 'step'],
38
+ pile: ['look', 'box', 'pile'], sides: ['look', 'n', 'rows', 'sides'], bus: ['look', 'n', 'waiting'], stairs: ['look', 'step'],
38
39
  };
39
- const DEFAULTS = { look: 'tray', rows: false, drag: false, clear: false, path: false, counted: false };
40
+ const DEFAULTS = { look: 'tray', rows: false, drag: false, clear: false, path: false, counted: false, sides: false };
40
41
 
41
42
  function read(fields, { at }, ctx) {
42
43
  const pg = check(Fields, fields, at), fail = words => ctx.fail(at, words);
@@ -50,6 +51,7 @@ function read(fields, { at }, ctx) {
50
51
  for (const [f, v] of Object.entries(pg)) if (!['readout', ...(USES[mode] ?? [])].includes(f) && v !== undefined && v !== DEFAULTS[f]) fail(`${f} belongs to other pages, leave it out of this one`);
51
52
  if (mode === 'stairs' && (step.n == null || step.n < 0 || (step.ctl?.hi ?? step.n) > STEPS)) fail(`step is missing or past the staircase, write a step from 0 to ${STEPS}, or { stepper: [0, ${STEPS}], start: 3 }`);
52
53
  if (mode === 'bus' && (pg.n == null || pg.waiting == null || pg.n + pg.waiting > STOP)) fail(`n and waiting are the people on the bus and at the stop, write both, ${STOP} people in all at most`);
54
+ if (mode === 'sides' && (!pg.rows || pg.look !== 'tray' || pg.n == null || pg.n < SIDES[0] || pg.n > SIDES[1])) fail(`sides steps a group in rows of ten, write rows: true and n from ${SIDES[0]} to ${SIDES[1]}`);
53
55
  if (mode === 'pile' && (box.n == null || box.n < 0)) fail('box is missing, write the number the closed box holds, such as 5, or { stepper: [3, 20], start: 5 }');
54
56
  if (mode === 'marker' && (!pg.rows || (marker.ctl?.lo ?? marker.n) < 1 || (marker.ctl?.hi ?? marker.n) > n)) fail(`marker stands on a counter of the rows, write rows: true and a marker from 1 to ${n}`);
55
57
  if (['tag', 'again', 'place', 'take'].includes(mode)) {
@@ -21,6 +21,17 @@ const OBJECTS = {
21
21
  walker: r => [el('path', { class: 'counters-legs', d: `M ${-r * 0.2} ${-r} L ${-r * 0.3} 0 M ${r * 0.2} ${-r} L ${r * 0.35} 0` }),
22
22
  el('rect', { class: 'counters-body', x: -r * 0.45, y: -r * 2.05, width: r * 0.9, height: r * 1.2, rx: r * 0.35 }),
23
23
  el('circle', { class: 'counters-skin', cy: -r * 2.5, r: r * 0.42 })],
24
+ // A cup seen from the side with its handle, and a saucer seen from above the table's edge.
25
+ mug: r => [el('path', { class: 'counters-handle', d: `M ${r * 0.62} ${-r * 0.4} Q ${r * 1.3} ${-r * 0.35} ${r * 1.12} ${r * 0.2} Q ${r * 0.98} ${r * 0.55} ${r * 0.56} ${r * 0.45}` }),
26
+ el('path', { class: 'counters-body', d: `M ${-r * 0.72} ${-r * 0.75} L ${r * 0.72} ${-r * 0.75} L ${r * 0.56} ${r * 0.78} Q 0 ${r * 0.95} ${-r * 0.56} ${r * 0.78} Z` }),
27
+ el('ellipse', { class: 'counters-shine', cy: -r * 0.75, rx: r * 0.72, ry: r * 0.17 })],
28
+ // A chair seen from the side: its back, its seat and two legs.
29
+ chair: r => [el('path', { class: 'counters-legs', d: `M ${-r * 0.55} ${r * 0.15} L ${-r * 0.55} ${r} M ${r * 0.6} ${r * 0.15} L ${r * 0.6} ${r}` }),
30
+ el('rect', { class: 'counters-body', x: -r * 0.75, y: -r, width: r * 0.4, height: r * 1.3, rx: r * 0.15 }),
31
+ el('rect', { class: 'counters-body', x: -r * 0.75, y: -r * 0.05, width: r * 1.55, height: r * 0.4, rx: r * 0.15 })],
32
+ // A football: a ball in its team's colour with a patch.
33
+ ball: r => [el('circle', { class: 'counters-body', r }), el('path', { class: 'counters-patch', d: `M 0 ${-r * 0.5} L ${r * 0.48} ${-r * 0.15} L ${r * 0.3} ${r * 0.42} L ${-r * 0.3} ${r * 0.42} L ${-r * 0.48} ${-r * 0.15} Z` })],
34
+ saucer: r => [el('ellipse', { class: 'counters-body', rx: r * 1.5, ry: r * 0.5 }), el('ellipse', { class: 'counters-well', rx: r * 0.8, ry: r * 0.24 })],
24
35
  };
25
36
 
26
37
  function glyph(kind, r) {
@@ -84,3 +84,71 @@ counters_hint-count-on: "Start from {box} and say the next number for each count
84
84
  counters_hint-count-back: "Start from {start} and say the number before for each counter you take away. Stop at {target}."
85
85
  counters_roll: Roll the ball
86
86
  counters_set-up: Set up the pins
87
+ counters_ctl-top: Top row
88
+ counters_ctl-bottom: Bottom row
89
+ counters_ctl-spread: Spacing
90
+ counters_match-unpaired: Without a partner
91
+ counters_match-pairs: Pairs
92
+ counters_word-same: The same
93
+ counters_tag-more: more
94
+ counters_tag-fewer: fewer
95
+ counters_tag-same: the same
96
+ counters_tag-more-n: "{n} more"
97
+ counters_tag-fewer-n: "{n} fewer"
98
+ counters_match-top: Top row
99
+ counters_match-bottom: Bottom row
100
+ counters_match-counted: Last number said
101
+ counters_match-added: Added
102
+ counters_match-taken: Taken away
103
+ counters_match-chairs-top: Players
104
+ counters_match-chairs-bottom: Chairs
105
+ counters_chairs-stop: Stop the music
106
+ counters_chairs-next: Next round
107
+ counters_chairs-again: Play again
108
+ counters_row-now: now
109
+ counters_row-before: before
110
+ counters_match-trail-top: Now
111
+ counters_match-trail-bottom: Before
112
+ counters_one-less: one less
113
+ counters_one-more: one more
114
+ counters_sides-count: Number
115
+ counters_sides-before: Number before
116
+ counters_sides-after: Number after
117
+ counters_reading-less: "{a} is less than {b}"
118
+ counters_reading-same: "{a} is the same as {b}"
119
+ counters_reading-greater: "{a} is greater than {b}"
120
+ counters_is-less: is less than
121
+ counters_is-greater: is greater than
122
+ counters_least: least
123
+ counters_greatest: greatest
124
+ counters_show-rows: Show the rows
125
+ counters_order-top: First number
126
+ counters_order-bottom: Second number
127
+ counters_order-top-rows: "First, full rows"
128
+ counters_order-top-last: "First, last row"
129
+ counters_order-bottom-rows: "Second, full rows"
130
+ counters_order-bottom-last: "Second, last row"
131
+ counters_reading-equal: "{a} is equal to {b}"
132
+ counters_verdict-true: "true"
133
+ counters_verdict-false: "false"
134
+ counters_sign: Sign
135
+ counters_match-reading: In words
136
+ counters_match-verdict: The line is
137
+ counters_match-scoreboard-top: Home
138
+ counters_match-scoreboard-bottom: Away
139
+ counters_score-top: Home goal
140
+ counters_score-bottom: Away goal
141
+ counters_new-match: New match
142
+ counters_goal-same-rows: "Make the top row the same as the bottom row, then press Check."
143
+ counters_note-same-rows-top: Some counters of the top row have no partner.
144
+ counters_note-same-rows-bottom: Some counters of the bottom row have no partner.
145
+ counters_hint-same-rows: "Draw a line from each top counter to a bottom counter. The counters left without a line show what to change."
146
+ counters_goal-one-less: "Give the top row one counter fewer than the bottom row, then press Check."
147
+ counters_note-one-less-over: The top row has too many counters.
148
+ counters_note-one-less-short: The top row has too few counters.
149
+ counters_hint-one-less: "Pair the rows. One counter fewer leaves one counter of the bottom row without a partner."
150
+ counters_goal-right-sign: "Put the sign between the two rows that makes the line true, then press Check."
151
+ counters_note-right-sign-more: The top row has more counters than this sign says.
152
+ counters_note-right-sign-fewer: The top row has fewer counters than this sign says.
153
+ counters_hint-right-sign: "Draw a line from each top counter to a bottom counter. The row with counters left without a partner has more, and the open side of the sign faces it. With no counter left, the sign is =."
154
+ counters_new-numbers: New numbers
@@ -84,3 +84,71 @@ counters_hint-count-on: "{box} sayısından başlayın ve kutunun yanına koydu
84
84
  counters_hint-count-back: "{start} sayısından başlayın ve aldığınız her sayaç için bir önceki sayıyı söyleyin. {target} sayısında durun."
85
85
  counters_roll: Topu yuvarla
86
86
  counters_set-up: Lobutları diz
87
+ counters_ctl-top: Üst sıra
88
+ counters_ctl-bottom: Alt sıra
89
+ counters_ctl-spread: Aralık
90
+ counters_match-unpaired: Eşi olmayan
91
+ counters_match-pairs: Çiftler
92
+ counters_word-same: Aynı
93
+ counters_tag-more: daha çok
94
+ counters_tag-fewer: daha az
95
+ counters_tag-same: aynı
96
+ counters_tag-more-n: "{n} daha çok"
97
+ counters_tag-fewer-n: "{n} daha az"
98
+ counters_match-top: Üst sıra
99
+ counters_match-bottom: Alt sıra
100
+ counters_match-counted: Son söylenen sayı
101
+ counters_match-added: Eklenen
102
+ counters_match-taken: Çıkarılan
103
+ counters_match-chairs-top: Oyuncular
104
+ counters_match-chairs-bottom: Sandalyeler
105
+ counters_chairs-stop: Müziği durdur
106
+ counters_chairs-next: Sonraki tur
107
+ counters_chairs-again: Yeniden oyna
108
+ counters_row-now: şimdi
109
+ counters_row-before: önce
110
+ counters_match-trail-top: Şimdi
111
+ counters_match-trail-bottom: Önce
112
+ counters_one-less: bir eksik
113
+ counters_one-more: bir fazla
114
+ counters_sides-count: Sayı
115
+ counters_sides-before: Önceki sayı
116
+ counters_sides-after: Sonraki sayı
117
+ counters_reading-less: "{a}, {b} sayısından küçüktür"
118
+ counters_reading-same: "{a}, {b} ile aynıdır"
119
+ counters_reading-greater: "{a}, {b} sayısından büyüktür"
120
+ counters_is-less: küçüktür
121
+ counters_is-greater: büyüktür
122
+ counters_least: en küçük
123
+ counters_greatest: en büyük
124
+ counters_show-rows: Sıraları göster
125
+ counters_order-top: Birinci sayı
126
+ counters_order-bottom: İkinci sayı
127
+ counters_order-top-rows: "Birinci, tam sıralar"
128
+ counters_order-top-last: "Birinci, son sıra"
129
+ counters_order-bottom-rows: "İkinci, tam sıralar"
130
+ counters_order-bottom-last: "İkinci, son sıra"
131
+ counters_reading-equal: "{a}, {b} sayısına eşittir"
132
+ counters_verdict-true: "doğru"
133
+ counters_verdict-false: "yanlış"
134
+ counters_sign: İşaret
135
+ counters_match-reading: Sözle
136
+ counters_match-verdict: Satır
137
+ counters_match-scoreboard-top: Ev sahibi
138
+ counters_match-scoreboard-bottom: Deplasman
139
+ counters_score-top: Ev sahibi golü
140
+ counters_score-bottom: Deplasman golü
141
+ counters_new-match: Yeni maç
142
+ counters_goal-same-rows: "Üst sırayı alt sırayla aynı yapın, sonra Kontrol et düğmesine basın."
143
+ counters_note-same-rows-top: Üst sıradaki bazı sayaçların eşi yok.
144
+ counters_note-same-rows-bottom: Alt sıradaki bazı sayaçların eşi yok.
145
+ counters_hint-same-rows: "Her üst sayaçtan bir alt sayaca çizgi çizin. Çizgisiz kalan sayaçlar neyi değiştireceğinizi gösterir."
146
+ counters_goal-one-less: "Üst sıraya alt sıradan bir sayaç az verin, sonra Kontrol et düğmesine basın."
147
+ counters_note-one-less-over: Üst sırada fazla sayaç var.
148
+ counters_note-one-less-short: Üst sırada eksik sayaç var.
149
+ counters_hint-one-less: "Sıraları eşleştirin. Bir sayaç az olunca alt sıranın bir sayacı eşsiz kalır."
150
+ counters_goal-right-sign: "İki sıranın arasına satırı doğru yapan işareti koyun, sonra Kontrol et düğmesine basın."
151
+ counters_note-right-sign-more: Üst sırada bu işaretin söylediğinden çok sayaç var.
152
+ counters_note-right-sign-fewer: Üst sırada bu işaretin söylediğinden az sayaç var.
153
+ counters_hint-right-sign: "Her üst sayaçtan bir alt sayaca çizgi çizin. Eşsiz sayacı kalan sırada daha çok sayaç vardır ve işaretin açık yanı ona bakar. Hiç sayaç kalmazsa işaret = olur."
154
+ counters_new-numbers: Yeni sayılar