@openbooknetwork/hesap 0.3.0 → 0.3.2
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 +1 -1
- package/src/client.css +168 -0
- package/src/families/counters/add-figures.js +85 -0
- package/src/families/counters/add-goals.js +82 -0
- package/src/families/counters/add-model.js +82 -0
- package/src/families/counters/add.js +442 -0
- package/src/families/counters/add.mjs +102 -0
- package/src/families/counters/bonds.js +51 -12
- package/src/families/counters/client.css +40 -0
- package/src/families/counters/client.js +2 -1
- package/src/families/counters/count.js +4 -5
- package/src/families/counters/counter.js +14 -0
- package/src/families/counters/figures.js +12 -4
- package/src/families/counters/goals.js +1 -9
- package/src/families/counters/i18n/en.yaml +89 -45
- package/src/families/counters/i18n/tr.yaml +56 -12
- package/src/families/counters/index.mjs +5 -3
- package/src/families/counters/match-model.js +10 -1
- package/src/families/counters/match.js +31 -11
- package/src/families/counters/match.mjs +7 -1
- package/src/families/line/client.css +118 -0
- package/src/families/line/client.js +12 -0
- package/src/families/line/figures.js +143 -0
- package/src/families/line/goals.js +168 -0
- package/src/families/line/i18n/en.yaml +61 -0
- package/src/families/line/i18n/tr.yaml +61 -0
- package/src/families/line/index.mjs +227 -0
- package/src/families/line/lens.js +49 -0
- package/src/families/line/line.js +624 -0
- package/src/families/line/model.js +219 -0
- package/src/families.mjs +2 -1
- package/src/i18n/en.yaml +158 -46
- package/src/i18n/tr.yaml +124 -12
- package/src/kit/i18n/en.yaml +8 -1
- package/src/kit/i18n/tr.yaml +7 -0
- package/src/kit/kit.css +9 -0
- package/src/kit/panel.js +2 -0
- package/src/kit/random.js +9 -0
- package/src/kit/written.js +70 -0
- package/src/node.mjs +3 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// pins in a lane or as cars in a car park. The reader drags them between parts, taps cells, sets a part or the whole,
|
|
3
3
|
// swaps the parts, fills a frame and lifts a cup, and a list logs each split found.
|
|
4
4
|
import { modeOf, capOf, opening, counts, lay, blueOf, contextOf, measuresOf } from './model.js';
|
|
5
|
-
import { GOALS, PILE, challengeStart
|
|
5
|
+
import { GOALS, PILE, challengeStart } from './goals.js';
|
|
6
6
|
import { counter, show, put, R } from './counter.js';
|
|
7
7
|
import { frames } from './frame.js';
|
|
8
8
|
import { arrange } from './places.js';
|
|
@@ -10,11 +10,11 @@ import { parts, numerals, hands, splits, pins, park, trays, trayPile } from './f
|
|
|
10
10
|
import { carry, press } from './move.js';
|
|
11
11
|
import { driver } from './driver.js';
|
|
12
12
|
import { svg as el, svgPoint } from '../../kit/dom.js';
|
|
13
|
-
import { slider, stepper, chip, button, row } from '../../kit/panel.js';
|
|
13
|
+
import { slider, stepper, chip, button, row, check } from '../../kit/panel.js';
|
|
14
14
|
import { goalRow } from '../../kit/goal.js';
|
|
15
15
|
import { live } from '../../kit/text.js';
|
|
16
16
|
import { numbers } from '../../kit/format.js';
|
|
17
|
-
import { dice, fresh } from '../../kit/random.js';
|
|
17
|
+
import { dice, fresh, another } from '../../kit/random.js';
|
|
18
18
|
|
|
19
19
|
const MAX = 1.7; // A figure grows to at most this scale on a wide stage.
|
|
20
20
|
const PAD = 14; // The figure keeps this far from the stage's edges, in pixels.
|
|
@@ -29,7 +29,7 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
29
29
|
// geo the places and parts of the figure as drawn, and nodes the drawn counter of each id. target is the
|
|
30
30
|
// challenge's draw, and cs the reader's answer to it.
|
|
31
31
|
let spec = null, s = null, st = null, geo = null, area = { w: 0, h: 0 }, nodes = new Map(), seq = 0, hold = null;
|
|
32
|
-
let goal = null, chips = [], target = null, cs = null, blueCtl = null, liftBtn = null, fillBtn = null, cupAt = null, pinned = [];
|
|
32
|
+
let goal = null, chips = [], target = null, cs = null, blueCtl = null, liftBtn = null, fillBtn = null, cupAt = null, pinned = [], rolling = false;
|
|
33
33
|
|
|
34
34
|
const int = n => numbers(lang()).int(n);
|
|
35
35
|
const label = id => T(`${contextOf(spec)}-${id}`) ?? T(id);
|
|
@@ -116,6 +116,8 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
116
116
|
layer.replaceChildren(); nodes = new Map();
|
|
117
117
|
svg.classList.toggle('counters-tapping', !!spec.tap);
|
|
118
118
|
cupAt = null; pinned = [];
|
|
119
|
+
const ball = geo.refs.pins?.ball;
|
|
120
|
+
if (ball) place(ball, ball.rest, 0);
|
|
119
121
|
wire(); render('jump');
|
|
120
122
|
}
|
|
121
123
|
|
|
@@ -245,15 +247,52 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
245
247
|
function lower() { if (spec.challenge?.goal === 'hidden-part' && cs.lifted) { cs.lifted = false; liftWords(); } }
|
|
246
248
|
|
|
247
249
|
// A tap on a cell adds a counter of the page's part or takes it away. A tap on a pin knocks it down or stands it up.
|
|
248
|
-
// roll knocks down
|
|
250
|
+
// roll knocks down some of the pins still standing, at least one, and setUp stands every pin again. Both wait while
|
|
251
|
+
// the ball is rolling.
|
|
249
252
|
function roll() {
|
|
250
253
|
const up = s.cells.flatMap((id, i) => id ? [i] : []);
|
|
251
|
-
if (!up.length) return;
|
|
252
|
-
const d = dice(fresh());
|
|
253
|
-
for (const i of d.some(up, d.int(1, up.length))) s.cells[i] = null;
|
|
254
|
+
if (rolling || !up.length) return;
|
|
255
|
+
const d = dice(fresh()), ball = geo?.refs.pins?.ball;
|
|
256
|
+
if (!ball) { for (const i of d.some(up, d.int(1, up.length))) s.cells[i] = null; return changed(); }
|
|
257
|
+
const { hit, aim } = strike(d, up, ball);
|
|
258
|
+
if (moving()) return bowl(ball, hit, aim);
|
|
259
|
+
for (const i of hit) s.cells[i] = null;
|
|
254
260
|
changed();
|
|
255
261
|
}
|
|
256
|
-
|
|
262
|
+
// strike picks the pins a roll knocks down. The ball runs from rest through a standing pin, and knocks down every
|
|
263
|
+
// standing pin on its way. A pin that falls knocks each standing pin just behind it down half the time.
|
|
264
|
+
function strike(d, up, ball) {
|
|
265
|
+
const all = geo.refs.pins.pins, at = all[d.pick(up)], off = d.int(-8, 8), r = ball.rest;
|
|
266
|
+
const x = y => r.x + (at.x + off - r.x) * (r.y - y) / (r.y - at.y);
|
|
267
|
+
const hit = new Set(up.filter(i => Math.abs(all[i].x - x(all[i].y)) < 28));
|
|
268
|
+
const behind = (i, j) => all[j].y > all[i].y && all[j].y - all[i].y < 60 && Math.abs(all[j].x - all[i].x) < 40;
|
|
269
|
+
for (const i of [...up].sort((a, b) => all[b].y - all[a].y)) if (!hit.has(i) && [...hit].some(j => behind(i, j)) && d.int(0, 1)) hit.add(i);
|
|
270
|
+
// A pin falls away from the ball's path.
|
|
271
|
+
for (const i of hit) all[i].side = all[i].x < x(all[i].y) ? -1 : 1;
|
|
272
|
+
return { hit: [...hit], aim: x(ball.end.y) };
|
|
273
|
+
}
|
|
274
|
+
function setUp() { if (rolling) return; s.cells = s.cells.map(id => id ?? newId('a')); changed(); }
|
|
275
|
+
// bowl rolls the ball up the lane towards the pins it knocks down, and each pin falls as the ball reaches its row.
|
|
276
|
+
// The ball then goes on past the back row, and comes back to rest at the near end.
|
|
277
|
+
function bowl(ball, hit, aim) {
|
|
278
|
+
const all = geo.refs.pins.pins, left = new Set(hit);
|
|
279
|
+
const p = { x: ball.rest.x, y: ball.rest.y, t: 0 };
|
|
280
|
+
const knock = y => {
|
|
281
|
+
const fall = [...left].filter(i => all[i].y >= y - 4);
|
|
282
|
+
if (!fall.length) return;
|
|
283
|
+
for (const i of fall) { s.cells[i] = null; left.delete(i); }
|
|
284
|
+
changed();
|
|
285
|
+
};
|
|
286
|
+
const end = () => { rolling = false; place(ball, ball.rest, 0); };
|
|
287
|
+
rolling = true;
|
|
288
|
+
fx.run(p, { x: aim, y: ball.end.y, t: 1, duration: 900, ease: 'linear', onUpdate: () => { place(ball, p, p.t); knock(p.y); } },
|
|
289
|
+
() => { knock(-Infinity); end(); go.pop(ball.look); }, end);
|
|
290
|
+
}
|
|
291
|
+
// place puts the ball at p, a little smaller and fading out as it goes further down the lane, t from 0 to 1.
|
|
292
|
+
function place(ball, p, t) {
|
|
293
|
+
ball.g.setAttribute('transform', `translate(${p.x} ${p.y}) scale(${1 - 0.3 * t})`);
|
|
294
|
+
ball.g.style.opacity = t > 0.8 ? (1 - t) / 0.2 : 1;
|
|
295
|
+
}
|
|
257
296
|
function tapCell(i) {
|
|
258
297
|
if (spec.look === 'pins') { s.cells[i] = s.cells[i] ? null : newId('a'); return changed(); }
|
|
259
298
|
const colour = spec.tap === 'second' ? 'b' : 'a', id = s.cells[i];
|
|
@@ -302,7 +341,7 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
302
341
|
for (const [i, p] of (geo.refs.pins?.pins ?? []).entries()) {
|
|
303
342
|
const up = !!s.cells[i], was = pinned[i];
|
|
304
343
|
p.g.classList.toggle('counters-down', !up); p.g.setAttribute('aria-label', T(up ? 'pin-up' : 'pin-down', int(i + 1)));
|
|
305
|
-
const a = up ? 0 : 80, draw = () => p.body.setAttribute('transform', `rotate(${p.tilt.a}) scale(${1 - p.tilt.a / 400})`);
|
|
344
|
+
const a = up ? 0 : 80 * (p.side ?? 1), draw = () => p.body.setAttribute('transform', `rotate(${p.tilt.a}) scale(${1 - Math.abs(p.tilt.a) / 400})`);
|
|
306
345
|
if (was !== undefined && was !== up && anim) { p.tween?.pause(); p.tween = go.tween(p.tilt, { a }, draw, 420, up ? 'outBack' : 'outBounce'); }
|
|
307
346
|
else { p.tilt.a = a; draw(); }
|
|
308
347
|
pinned[i] = up;
|
|
@@ -347,7 +386,7 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
347
386
|
const g = GOALS[c.goal], words = g.words(c, target, { int });
|
|
348
387
|
goal.say(T(c.goal === 'make-whole' && spec.frames > 1 ? 'goal-make-whole-two' : `goal-${c.goal}`, words));
|
|
349
388
|
const r = g.holds({ ...cs, blue: s.blue?.length ?? 0, tray: s.tray?.length ?? 0 }, spec, c, target);
|
|
350
|
-
const first = goal.show(r.done, r.note ? T(`note-${r.note}
|
|
389
|
+
const first = goal.show(r.done, r.note ? T(`note-${r.note}`, words) : undefined);
|
|
351
390
|
if (first && moving()) go.cheer([...nodes.values()].filter(n => c.goal === 'make-whole' ? !n.g.classList.contains('counters-over') : s.tray.some(id => nodes.get(id) === n)).map(n => n.pop));
|
|
352
391
|
}
|
|
353
392
|
|
|
@@ -361,7 +400,7 @@ export default function bonds({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
361
400
|
if (c.goal === 'make-whole') {
|
|
362
401
|
blueCtl = slider({ id: 'blue', label: T('blue'), min: 0, max: c.whole, value: 0, write: int, input: setBlue, change: setBlue });
|
|
363
402
|
blueCtl.width(2);
|
|
364
|
-
ctls.push(blueCtl,
|
|
403
|
+
ctls.push(blueCtl, check({ T, press: () => { if (cs.checked) return; cs.checked = true; render('move'); } }));
|
|
365
404
|
} else ctls.push(liftBtn = button({ label: T('lift'), act: 'lift', primary: true, press: lift }));
|
|
366
405
|
} else {
|
|
367
406
|
if (spec.wholeCtl) ctls.push(stepper({ id: 'whole', label: T('ctl-whole'), min: spec.wholeCtl.lo, max: spec.wholeCtl.hi, value: spec.whole, write: int, change: setWhole }));
|
|
@@ -68,6 +68,9 @@
|
|
|
68
68
|
.hesap-counters .counters-pin-stripe{fill:var(--z-counters-red,#d1453b)}
|
|
69
69
|
.hesap-counters .counters-spot{fill:var(--rule)}
|
|
70
70
|
.hesap-counters .counters-down .counters-pin-body{opacity:.45}
|
|
71
|
+
.hesap-counters .counters-ball{pointer-events:none}
|
|
72
|
+
.hesap-counters .counters-ball-shape{fill:var(--z-counters-blue,#2a6bd1);stroke:var(--ink);stroke-width:2}
|
|
73
|
+
.hesap-counters .counters-ball-hole{fill:var(--ink)}
|
|
71
74
|
.hesap-counters .counters-pin:focus-visible .counters-hit{stroke:var(--accent);stroke-width:2.5}
|
|
72
75
|
|
|
73
76
|
/* The car park: two rows of spaces, an aisle, and a sign that shows the free spaces. */
|
|
@@ -236,3 +239,40 @@
|
|
|
236
239
|
.hesap-counters .counters-line-card{fill:var(--panel);stroke:var(--c);stroke-width:2}
|
|
237
240
|
.hesap-counters .counters-added .counters-ring{display:none}
|
|
238
241
|
.hesap-counters .counters-plus{fill:none;stroke:var(--paper);stroke-width:4;stroke-linecap:round;pointer-events:none}
|
|
242
|
+
|
|
243
|
+
/* The add scene: the dice over the frames and the tray, and the counters a link lights. */
|
|
244
|
+
.hesap-counters .counters-die-box{fill:var(--paper);stroke:var(--ink);stroke-width:2.5}
|
|
245
|
+
.hesap-counters .counters-pip{fill:var(--ink);stroke:none}
|
|
246
|
+
.hesap-counters .counters-die.counters-hot{stroke:none}
|
|
247
|
+
.hesap-counters .counters-die.counters-hot .counters-die-box{stroke:var(--accent);stroke-width:4}
|
|
248
|
+
.hesap-counters .counters-lit .counters-body{stroke:var(--accent);stroke-width:4}
|
|
249
|
+
/* A counter taken away leaves a dashed ring in its cell. */
|
|
250
|
+
.hesap-counters .counters-gone{display:none}
|
|
251
|
+
.hesap-counters .counters-taken .counters-gone{display:inline}
|
|
252
|
+
.hesap-counters .counters-taken .counters-body,.hesap-counters .counters-taken .counters-ring{display:none}
|
|
253
|
+
.hesap-counters .counters-lit .counters-gone{stroke:var(--accent);stroke-width:3.5}
|
|
254
|
+
/* The jam shelf: jars on wooden boards, and two crates for the jars sold. A sold jar's lid takes its crate's colour. */
|
|
255
|
+
.hesap-counters .counters-jar-glass{fill:var(--paper);fill-opacity:.4;stroke:var(--ink-2);stroke-width:2}
|
|
256
|
+
.hesap-counters .counters-jam{fill:#e08a1e}
|
|
257
|
+
.hesap-counters .counters-jar-lid{fill:var(--c,var(--ink-2));stroke:var(--paper);stroke-width:1}
|
|
258
|
+
.hesap-counters .counters-lit .counters-jar-glass{stroke:var(--accent);stroke-width:3.5}
|
|
259
|
+
.hesap-counters .counters-shelf-board{fill:#b98a5a;stroke:#8a6238;stroke-width:2}
|
|
260
|
+
.hesap-counters rect.counters-crate.counters-press{fill:var(--panel);stroke:#8a6238;stroke-width:3}
|
|
261
|
+
.hesap-counters .counters-crate-name{font-size:16px;font-weight:700;fill:var(--ink-2)}
|
|
262
|
+
.hesap-counters .counters-crate-name.counters-hot{stroke:none;fill:var(--accent)}
|
|
263
|
+
/* The seed tray: cells of bare soil, grown seedlings and small sprouts. */
|
|
264
|
+
.hesap-counters .counters-seedtray{fill:#8a6238;stroke:#5c3f22;stroke-width:2.5}
|
|
265
|
+
.hesap-counters .counters-soil{fill:#6b4a2b;stroke:#5c3f22;stroke-width:1}
|
|
266
|
+
.hesap-counters .counters-plant-stem{fill:none;stroke:#3f9a4a;stroke-width:3;stroke-linecap:round}
|
|
267
|
+
/* The seed packet of the seed tray: a paper packet with a folded top, whose seeds turn into sprouts when sown. */
|
|
268
|
+
.hesap-counters .counters-packet-paper{fill:#efe2c4;stroke:#a88a55;stroke-width:2}
|
|
269
|
+
.hesap-counters .counters-packet-fold{stroke:#a88a55;stroke-width:2;stroke-dasharray:5 4}
|
|
270
|
+
.hesap-counters .counters-packet.counters-hot .counters-packet-paper{stroke:var(--accent);stroke-width:4}
|
|
271
|
+
.hesap-counters .counters-seed{display:none}
|
|
272
|
+
.hesap-counters .counters-in-packet .counters-seed{display:inline}
|
|
273
|
+
.hesap-counters .counters-in-packet .counters-body:not(.counters-seed),.hesap-counters .counters-in-packet .counters-plant-stem{display:none}
|
|
274
|
+
/* The link pairs lights each paired counter with a filled halo of the accent, which stays plain on a small phone
|
|
275
|
+
figure and differs from the ink ring of a counter without a partner. */
|
|
276
|
+
.hesap-counters .counters-paired-lit .counters-hit{fill:var(--accent);fill-opacity:.6;stroke:var(--accent);stroke-width:4}
|
|
277
|
+
.hesap-counters .counters-paired-lit .counters-body{stroke:var(--paper);stroke-width:2.5}
|
|
278
|
+
.hesap-counters .counters-wire.counters-hot{stroke:var(--accent);stroke-width:5}
|
|
@@ -4,9 +4,10 @@ import bonds from './bonds.js';
|
|
|
4
4
|
import count from './count.js';
|
|
5
5
|
import match from './match.js';
|
|
6
6
|
import order from './order.js';
|
|
7
|
+
import add from './add.js';
|
|
7
8
|
import { scenes } from './scenes.js';
|
|
8
9
|
|
|
9
|
-
const SCENES = { bonds, count, match, order };
|
|
10
|
+
const SCENES = { bonds, count, match, order, add };
|
|
10
11
|
|
|
11
12
|
export default function counters(api) {
|
|
12
13
|
const all = scenes(Object.fromEntries(Object.entries(SCENES).map(([name, make]) => [name, () => make(api)])), api.stage);
|
|
@@ -2,7 +2,6 @@
|
|
|
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
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
|
-
import { another } from './goals.js';
|
|
6
5
|
import { counter, show, put, R } from './counter.js';
|
|
7
6
|
import { arrange } from './places.js';
|
|
8
7
|
import { place, rows, boxRow, pile, basket, bus, stairs, sides } from './count-figures.js';
|
|
@@ -10,11 +9,11 @@ import { carry, press } from './move.js';
|
|
|
10
9
|
import { driver } from './driver.js';
|
|
11
10
|
import { svg as el, svgPoint } from '../../kit/dom.js';
|
|
12
11
|
import { nudge } from '../../kit/drag.js';
|
|
13
|
-
import { stepper, chip, button, row } from '../../kit/panel.js';
|
|
12
|
+
import { stepper, chip, button, row, check } from '../../kit/panel.js';
|
|
14
13
|
import { goalRow } from '../../kit/goal.js';
|
|
15
14
|
import { live } from '../../kit/text.js';
|
|
16
15
|
import { numbers } from '../../kit/format.js';
|
|
17
|
-
import { dice, fresh } from '../../kit/random.js';
|
|
16
|
+
import { dice, fresh, another } from '../../kit/random.js';
|
|
18
17
|
|
|
19
18
|
const MAX = 1.7; // A figure grows to at most this scale on a wide stage.
|
|
20
19
|
const PAD = 14; // The figure keeps this far from the stage's edges, in pixels.
|
|
@@ -301,7 +300,7 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
301
300
|
const g = COUNT_GOALS[c.goal];
|
|
302
301
|
goal.say(T(`goal-${c.goal}`, g.words(c, target, { int })));
|
|
303
302
|
const r = g.holds({ ...cs, basket: s.lists.basket.length, beside: s.lists.beside.length, left: s.here.filter(Boolean).length }, spec, c, target);
|
|
304
|
-
const first = goal.show(r.done, r.note ? T(`note-${c.goal}-${r.note}
|
|
303
|
+
const first = goal.show(r.done, r.note ? T(`note-${c.goal}-${r.note}`, g.words(c, target, { int })) : undefined);
|
|
305
304
|
if (first && moving()) go.cheer([...nodes.values()].map(n => n.pop));
|
|
306
305
|
}
|
|
307
306
|
|
|
@@ -312,7 +311,7 @@ export default function count({ host, stage, panel, T, lang, moving, motion: fx
|
|
|
312
311
|
if (c) {
|
|
313
312
|
goal = goalRow({ T, motion: moving() ? fx : null, hint: on => on ? T(`hint-${c.goal}`, COUNT_GOALS[c.goal].words(c, target, { int })) : null,
|
|
314
313
|
another: () => { begin(); goal.reset(); build(); if (!geo) refresh(); } });
|
|
315
|
-
ctls.push(
|
|
314
|
+
ctls.push(check({ T, press: () => { if (!cs.checked) { cs.checked = true; judge(); } } }));
|
|
316
315
|
} else {
|
|
317
316
|
const step = (id, key, ctl, value, set) => stepper({ id, label: T(key), min: ctl.lo, max: ctl.hi, value, write: int, change: v => { set(v); changed(); } });
|
|
318
317
|
if (spec.boxCtl) ctls.push(step('box', 'ctl-box', spec.boxCtl, s.box, v => { s.box = v; }));
|
|
@@ -36,6 +36,20 @@ const OBJECTS = {
|
|
|
36
36
|
|
|
37
37
|
function glyph(kind, r) {
|
|
38
38
|
if (OBJECTS[kind]) return OBJECTS[kind](r);
|
|
39
|
+
// A grown seedling with two large leaves, and a small sprout with two small ones, so the two groups of the seed
|
|
40
|
+
// tray differ by size and shape.
|
|
41
|
+
if (kind === 'seedling') return [el('path', { class: 'counters-plant-stem', d: `M 0 ${r * 0.95} L 0 ${-r * 0.35}` }),
|
|
42
|
+
el('ellipse', { class: 'counters-body', cx: -r * 0.45, cy: -r * 0.45, rx: r * 0.55, ry: r * 0.3, transform: `rotate(-30 ${-r * 0.45} ${-r * 0.45})` }),
|
|
43
|
+
el('ellipse', { class: 'counters-body', cx: r * 0.45, cy: -r * 0.6, rx: r * 0.55, ry: r * 0.3, transform: `rotate(30 ${r * 0.45} ${-r * 0.6})` })];
|
|
44
|
+
if (kind === 'sprout') return [el('path', { class: 'counters-plant-stem', d: `M 0 ${r * 0.95} L 0 ${r * 0.3}` }),
|
|
45
|
+
el('ellipse', { class: 'counters-body', cx: -r * 0.25, cy: r * 0.2, rx: r * 0.27, ry: r * 0.15, transform: `rotate(-30 ${-r * 0.25} ${r * 0.2})` }),
|
|
46
|
+
el('ellipse', { class: 'counters-body', cx: r * 0.25, cy: r * 0.12, rx: r * 0.27, ry: r * 0.15, transform: `rotate(30 ${r * 0.25} ${r * 0.12})` })];
|
|
47
|
+
// A jar of jam with its lid. The lid takes the colour of the crate the jar was sold into.
|
|
48
|
+
if (kind === 'jar') return [el('rect', { class: 'counters-jar-glass', x: -r * 0.78, y: -r * 0.72, width: r * 1.56, height: r * 1.72, rx: r * 0.32 }),
|
|
49
|
+
el('rect', { class: 'counters-jam', x: -r * 0.62, y: -r * 0.36, width: r * 1.24, height: r * 1.2, rx: r * 0.22 }),
|
|
50
|
+
el('rect', { class: 'counters-jar-lid', x: -r * 0.86, y: -r * 1.08, width: r * 1.72, height: r * 0.46, rx: r * 0.12 })];
|
|
51
|
+
// A square counter tells the second group of counters/add from the round first group by its shape.
|
|
52
|
+
if (kind === 'square') return [el('rect', { class: 'counters-body', x: -r * 0.9, y: -r * 0.9, width: r * 1.8, height: r * 1.8, rx: r * 0.22 }), el('rect', { class: 'counters-ring', x: -r * 0.52, y: -r * 0.52, width: r * 1.04, height: r * 1.04, rx: r * 0.1 })];
|
|
39
53
|
if (kind === 'bead') return [el('circle', { class: 'counters-body', r }), el('circle', { class: 'counters-shine', r: r * 0.32, cx: -r * 0.35, cy: -r * 0.35 })];
|
|
40
54
|
if (kind === 'car') {
|
|
41
55
|
const w = r * 1.5, l = r * 2.5;
|
|
@@ -99,9 +99,11 @@ export function splits(ways) {
|
|
|
99
99
|
|
|
100
100
|
// A bowling pin's outline, standing on 0, 0.
|
|
101
101
|
const PIN = 'M -7 0 C -13 -12 -12 -26 -6 -36 C -4 -40 -5 -44 -5 -48 C -6 -56 -3 -62 0 -62 C 3 -62 6 -56 5 -48 C 5 -44 4 -40 6 -36 C 12 -26 13 -12 7 0 Z';
|
|
102
|
-
|
|
102
|
+
const RUN = 84; // The length of lane in front of the head pin that the ball rolls along.
|
|
103
|
+
// pins stand at the end of a lane in rows of 4, 3, 2 and 1, and the ball rests at the near end. Cell 0 is the head pin
|
|
104
|
+
// at the front.
|
|
103
105
|
export function pins() {
|
|
104
|
-
const dx = 58, dy = 46, w = 4 * dx + 56, h = 70 + 3 * dy + 40;
|
|
106
|
+
const dx = 58, dy = 46, w = 4 * dx + 56, h = 70 + 3 * dy + 40 + RUN;
|
|
105
107
|
return [{ w, h, draw(x, y) {
|
|
106
108
|
const spots = [], order = [[3, 1], [2, 2], [1, 3], [0, 4]];
|
|
107
109
|
for (const [row, n] of order) for (let k = 0; k < n; k++) spots.push({ x: x + w / 2 + (k - (n - 1) / 2) * dx, y: y + 70 + row * dy });
|
|
@@ -109,10 +111,16 @@ export function pins() {
|
|
|
109
111
|
const pinsOf = spots.map((p, i) => {
|
|
110
112
|
const body = el('g', { class: 'counters-pin-body' }, [el('path', { class: 'counters-pin-shape', d: PIN }), el('rect', { class: 'counters-pin-stripe', x: -5, y: -44, width: 10, height: 3 }), el('rect', { class: 'counters-pin-stripe', x: -5, y: -39, width: 10, height: 3 })]);
|
|
111
113
|
const g = el('g', { class: 'counters-pin', transform: `translate(${p.x} ${p.y})`, tabindex: 0, role: 'button', 'data-cell': i }, [el('rect', { class: 'counters-hit', x: -27, y: -48, width: 54, height: 54 }), el('ellipse', { class: 'counters-spot', rx: 10, ry: 4 }), body]);
|
|
112
|
-
return { g, body, tilt: { a: 0 } };
|
|
114
|
+
return { g, body, tilt: { a: 0 }, x: p.x, y: p.y };
|
|
113
115
|
});
|
|
116
|
+
// The ball goes behind the pins, so a pin it reaches covers it. It rolls from rest to past the back row.
|
|
117
|
+
// The outer group takes the ball's place, and the inner one takes the pop, whose CSS transform would replace it.
|
|
118
|
+
const look = el('g', {}, [el('circle', { class: 'counters-ball-shape', r: 15 }),
|
|
119
|
+
...[[-4, -6], [3, -7], [-1, 0]].map(([cx, cy]) => el('circle', { class: 'counters-ball-hole', cx, cy, r: 2.4 }))]);
|
|
120
|
+
const ball = el('g', { class: 'counters-ball' }, [look]);
|
|
121
|
+
const rest = { x: x + w / 2, y: y + h - 26 }, end = { y: y + 30 };
|
|
114
122
|
// The pins at the back are drawn first, so the front pins stand before them.
|
|
115
|
-
return { nodes: [lane, ...[...pinsOf].reverse().map(p => p.g)], places: {}, refs: { pins: pinsOf, lane } };
|
|
123
|
+
return { nodes: [lane, ball, ...[...pinsOf].reverse().map(p => p.g)], places: {}, refs: { pins: pinsOf, lane, ball: { g: ball, look, rest, end } } };
|
|
116
124
|
} }];
|
|
117
125
|
}
|
|
118
126
|
|
|
@@ -42,7 +42,7 @@ export const GOALS = {
|
|
|
42
42
|
looks: ['diagram'],
|
|
43
43
|
problem(c) {
|
|
44
44
|
if (!range(c.whole) || c.whole[0] < 2 || c.whole[1] > PILE) return `whole is ${JSON.stringify(c.whole)}, write the range of the whole as [low, high] from 2 to ${PILE}, such as [5, 20]`;
|
|
45
|
-
if (c.part !== undefined && !range(c.part)) return 'part is not a range, write the part
|
|
45
|
+
if (c.part !== undefined && !range(c.part)) return 'part is not a range, write the known part as [low, high], or leave it out for 1 to one less than the whole';
|
|
46
46
|
return null;
|
|
47
47
|
},
|
|
48
48
|
draw(c, spec, dice) {
|
|
@@ -65,11 +65,3 @@ export const GOALS = {
|
|
|
65
65
|
// The reader's state as a challenge opens: no blue counters checked, an empty tray and the cup down.
|
|
66
66
|
export const challengeStart = () => ({ blue: 0, checked: false, tray: 0, lifted: false });
|
|
67
67
|
|
|
68
|
-
// another draws a target that differs from the last one, so Another one always changes the figure.
|
|
69
|
-
export function another(goal, c, spec, dice, last) {
|
|
70
|
-
for (let i = 0; i < 40; i++) {
|
|
71
|
-
const t = goal.draw(c, spec, dice);
|
|
72
|
-
if (!last || JSON.stringify(t) !== JSON.stringify(last)) return t;
|
|
73
|
-
}
|
|
74
|
-
return goal.draw(c, spec, dice);
|
|
75
|
-
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
counters_lead: "Tap
|
|
1
|
+
counters_lead: "Tap or drag the counters and watch the numbers change."
|
|
2
2
|
counters_whole: Whole
|
|
3
3
|
counters_first: First part
|
|
4
4
|
counters_second: Second part
|
|
5
5
|
counters_empty: Empty cells
|
|
6
|
-
counters_added:
|
|
6
|
+
counters_added: Added
|
|
7
7
|
counters_found: Splits found
|
|
8
8
|
counters_ways: Splits in all
|
|
9
9
|
counters_hands-first: Left hand
|
|
@@ -12,11 +12,11 @@ counters_hands-whole: Beads
|
|
|
12
12
|
counters_one-first: Counters
|
|
13
13
|
counters_one-found: Pairs found
|
|
14
14
|
counters_one-ways: Pairs in all
|
|
15
|
-
counters_two-first:
|
|
16
|
-
counters_two-second:
|
|
17
|
-
counters_cup-first:
|
|
18
|
-
counters_cup-second:
|
|
19
|
-
counters_cup-added:
|
|
15
|
+
counters_two-first: First part
|
|
16
|
+
counters_two-second: Second part
|
|
17
|
+
counters_cup-first: Known part
|
|
18
|
+
counters_cup-second: Missing part
|
|
19
|
+
counters_cup-added: Added
|
|
20
20
|
counters_pins-first: Standing
|
|
21
21
|
counters_pins-empty: Knocked down
|
|
22
22
|
counters_cars-first: Parked
|
|
@@ -27,8 +27,7 @@ counters_fill: Fill the second frame
|
|
|
27
27
|
counters_unfill: Empty the second frame
|
|
28
28
|
counters_lift: Lift the cup
|
|
29
29
|
counters_lower: Put the cup back
|
|
30
|
-
|
|
31
|
-
counters_blue: Blue counters
|
|
30
|
+
counters_blue: Second part
|
|
32
31
|
counters_tray: Tray
|
|
33
32
|
counters_pile: Pile
|
|
34
33
|
counters_cup: Cup
|
|
@@ -41,15 +40,15 @@ counters_free: Free
|
|
|
41
40
|
counters_pair: "{a} and {b}"
|
|
42
41
|
counters_list-splits: "Splits of {x}"
|
|
43
42
|
counters_list-pairs: "Pairs that make {x}"
|
|
44
|
-
counters_goal-make-whole: "
|
|
45
|
-
counters_goal-make-whole-two: "
|
|
46
|
-
counters_goal-hidden-part: "The whole is {whole}
|
|
47
|
-
counters_note-short:
|
|
48
|
-
counters_note-over:
|
|
49
|
-
counters_note-more:
|
|
50
|
-
counters_note-fewer:
|
|
51
|
-
counters_hint-make-whole: "Count on from {part} to {whole}
|
|
52
|
-
counters_hint-hidden-part: "Count on from {part} to {whole}
|
|
43
|
+
counters_goal-make-whole: "Set the second part so that it makes {whole} with the first part, {part}, then press Check."
|
|
44
|
+
counters_goal-make-whole-two: "Set the second part so that it makes {whole} with the first part, {part}, then press Check."
|
|
45
|
+
counters_goal-hidden-part: "The whole is {whole} and the known part is {part}. Put the missing part in the tray, then lift the cup."
|
|
46
|
+
counters_note-short: "There are still empty cells, so add more counters to the second part."
|
|
47
|
+
counters_note-over: "There are more counters than cells, so take some counters out of the second part."
|
|
48
|
+
counters_note-more: "There are more counters in the tray than under the cup, so put some back on the pile."
|
|
49
|
+
counters_note-fewer: "There are fewer counters in the tray than under the cup, so put more in the tray."
|
|
50
|
+
counters_hint-make-whole: "Count on from {part} to {whole} and keep track of how many numbers you say. That is how many counters the second part needs."
|
|
51
|
+
counters_hint-hidden-part: "Count on from {part} to {whole} and keep track of how many numbers you say. That is how many counters are under the cup, so put that many in the tray."
|
|
53
52
|
counters_total: How many
|
|
54
53
|
counters_tag-count: Last number said
|
|
55
54
|
counters_take-count: Left
|
|
@@ -70,18 +69,18 @@ counters_kind-person: Person
|
|
|
70
69
|
counters_gap: Empty place
|
|
71
70
|
counters_basket: Basket
|
|
72
71
|
counters_stop-sign: Bus
|
|
73
|
-
counters_goal-fill-basket: "Put
|
|
74
|
-
counters_goal-count-on: "The box holds {box}. Put counters
|
|
75
|
-
counters_goal-count-back: "Take counters away until {target}
|
|
76
|
-
counters_note-fill-basket-more:
|
|
77
|
-
counters_note-fill-basket-fewer:
|
|
78
|
-
counters_note-count-on-more: The box and the counters
|
|
79
|
-
counters_note-count-on-fewer: The box and the counters
|
|
80
|
-
counters_note-count-back-more:
|
|
81
|
-
counters_note-count-back-fewer:
|
|
82
|
-
counters_hint-fill-basket: "
|
|
83
|
-
counters_hint-count-on: "Start
|
|
84
|
-
counters_hint-count-back: "Start
|
|
72
|
+
counters_goal-fill-basket: "Put apples in the basket until it holds {target}, then press Check."
|
|
73
|
+
counters_goal-count-on: "The box holds {box}. Put counters in the dashed space until there are {target} altogether, then press Check."
|
|
74
|
+
counters_goal-count-back: "Take counters away until the number left is {target}, then press Check."
|
|
75
|
+
counters_note-fill-basket-more: "There are more than {target} apples in the basket, so take some out."
|
|
76
|
+
counters_note-fill-basket-fewer: "There are fewer than {target} apples in the basket, so put more in."
|
|
77
|
+
counters_note-count-on-more: "The box and the counters you put out come to more than {target}, so take some counters away."
|
|
78
|
+
counters_note-count-on-fewer: "The box and the counters you put out come to fewer than {target}, so put out more counters."
|
|
79
|
+
counters_note-count-back-more: "The number left is greater than {target}, so take more counters away."
|
|
80
|
+
counters_note-count-back-fewer: "The number left is less than {target}, so put some counters back."
|
|
81
|
+
counters_hint-fill-basket: "Count each apple as you put it in, and stop when you get to {target}."
|
|
82
|
+
counters_hint-count-on: "Start at {box}. Say the next number each time you put out a counter, and stop when you get to {target}."
|
|
83
|
+
counters_hint-count-back: "Start at {start}. Count back one number each time you take a counter away, and stop when you get to {target}."
|
|
85
84
|
counters_roll: Roll the ball
|
|
86
85
|
counters_set-up: Set up the pins
|
|
87
86
|
counters_ctl-top: Top row
|
|
@@ -124,31 +123,76 @@ counters_greatest: greatest
|
|
|
124
123
|
counters_show-rows: Show the rows
|
|
125
124
|
counters_order-top: First number
|
|
126
125
|
counters_order-bottom: Second number
|
|
127
|
-
counters_order-top-rows: "
|
|
128
|
-
counters_order-top-last: "
|
|
129
|
-
counters_order-bottom-rows: "
|
|
130
|
-
counters_order-bottom-last: "
|
|
126
|
+
counters_order-top-rows: "Full rows of the first"
|
|
127
|
+
counters_order-top-last: "Last row of the first"
|
|
128
|
+
counters_order-bottom-rows: "Full rows of the second"
|
|
129
|
+
counters_order-bottom-last: "Last row of the second"
|
|
131
130
|
counters_reading-equal: "{a} is equal to {b}"
|
|
132
131
|
counters_verdict-true: "true"
|
|
133
132
|
counters_verdict-false: "false"
|
|
134
133
|
counters_sign: Sign
|
|
135
134
|
counters_match-reading: In words
|
|
136
|
-
counters_match-verdict:
|
|
135
|
+
counters_match-verdict: True or false
|
|
137
136
|
counters_match-scoreboard-top: Home
|
|
138
137
|
counters_match-scoreboard-bottom: Away
|
|
139
138
|
counters_score-top: Home goal
|
|
140
139
|
counters_score-bottom: Away goal
|
|
141
140
|
counters_new-match: New match
|
|
142
|
-
counters_goal-same-rows: "
|
|
143
|
-
counters_note-same-rows-top: Some counters
|
|
144
|
-
counters_note-same-rows-bottom: Some counters
|
|
145
|
-
counters_hint-same-rows: "
|
|
146
|
-
counters_goal-one-less: "Give the top row one counter
|
|
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.
|
|
150
|
-
counters_goal-right-sign: "Put the sign
|
|
141
|
+
counters_goal-same-rows: "Give the top row as many counters as the bottom row, then press Check."
|
|
142
|
+
counters_note-same-rows-top: "Some counters in the top row have no partner, so take some away from the top row."
|
|
143
|
+
counters_note-same-rows-bottom: "Some counters in the bottom row have no partner, so add counters to the top row."
|
|
144
|
+
counters_hint-same-rows: "Pair up the counters in the two rows. Then add counters to the top row or take some away until every counter has a partner."
|
|
145
|
+
counters_goal-one-less: "Give the top row one fewer counter than the bottom row, then press Check."
|
|
146
|
+
counters_note-one-less-over: "The top row has too many counters, so take some away."
|
|
147
|
+
counters_note-one-less-short: "The top row has too few counters, so add some."
|
|
148
|
+
counters_hint-one-less: "Pair up the counters in the two rows. Then change the top row until just one counter in the bottom row has no partner."
|
|
149
|
+
counters_goal-right-sign: "Put the sign that makes the number sentence true between the two rows, then press Check."
|
|
151
150
|
counters_note-right-sign-more: The top row has more counters than this sign says.
|
|
152
151
|
counters_note-right-sign-fewer: The top row has fewer counters than this sign says.
|
|
153
|
-
counters_hint-right-sign: "
|
|
152
|
+
counters_hint-right-sign: "Pair up the counters in the two rows. The row with counters left over has more, and the open side of the sign faces that row. If no counters are left over, the sign is =."
|
|
154
153
|
counters_new-numbers: New numbers
|
|
154
|
+
counters_add-first: First number
|
|
155
|
+
counters_add-second: Second number
|
|
156
|
+
counters_add-waiting: Still to join
|
|
157
|
+
counters_add-sum: Sum
|
|
158
|
+
counters_add-dice-sum: Counters in the frames
|
|
159
|
+
counters_add-roll: Roll
|
|
160
|
+
counters_add-die: "Die showing {x}"
|
|
161
|
+
counters_add-counter-waiting: "Counter waiting to join"
|
|
162
|
+
counters_add-counter-joined: "Counter that has joined"
|
|
163
|
+
counters_add-take-second: Taken away
|
|
164
|
+
counters_add-left: Left
|
|
165
|
+
counters_add-take-counter: Counter
|
|
166
|
+
counters_add-take-ring: "Empty ring where a counter was taken away"
|
|
167
|
+
counters_add-shelf-first: Morning
|
|
168
|
+
counters_add-shelf-second: Afternoon
|
|
169
|
+
counters_add-shelf-sum: Sold
|
|
170
|
+
counters_add-shelf-written: Jars sold
|
|
171
|
+
counters_add-shelf-written-left: Jars left
|
|
172
|
+
counters_add-shelf-reading: Jars sold in words
|
|
173
|
+
counters_add-shelf-reading-left: Jars left in words
|
|
174
|
+
counters_add-shelf-crate: Sold in the
|
|
175
|
+
counters_add-shelf-jar: Jar on the shelf
|
|
176
|
+
counters_add-sold-jar: "Jar {x} in the crate"
|
|
177
|
+
counters_add-to-ten: Makes ten
|
|
178
|
+
counters_add-rest: The rest
|
|
179
|
+
counters_add-seedling: Seedling
|
|
180
|
+
counters_add-sprout: Sprout
|
|
181
|
+
counters_add-seed-waiting: Seed in the packet
|
|
182
|
+
counters_add-seed-joined: Sprout in the tray
|
|
183
|
+
counters_goal-find-sum: "Set the sum of {a} and {b} on the Sum stepper, then press Check."
|
|
184
|
+
counters_goal-find-sum-done: "A group of {a} and a group of {b} make {sum} altogether."
|
|
185
|
+
counters_note-find-sum-less: "The sum is less than {n}."
|
|
186
|
+
counters_note-find-sum-greater: "The sum is greater than {n}."
|
|
187
|
+
counters_hint-find-sum: "Picture {a} counters in the frames and {b} more counters joining them. Start at {a} and count on one number for each counter that joins."
|
|
188
|
+
counters_goal-steps-to-ten: "Split the {second} in {calc} into the part that makes ten with {first} and the rest, then press Check."
|
|
189
|
+
counters_goal-steps-to-ten-done: "{line}. The two steps are {toTen} and {rest}."
|
|
190
|
+
counters_note-steps-to-ten-past: "{step} goes past 10."
|
|
191
|
+
counters_note-steps-to-ten-short: "{step} does not reach 10."
|
|
192
|
+
counters_note-steps-to-ten-more: "{x} and {y} make more than {second}, so make the rest smaller."
|
|
193
|
+
counters_note-steps-to-ten-less: "{x} and {y} make less than {second}, so make the rest greater."
|
|
194
|
+
counters_hint-steps-to-ten-plus: "First work out how many {first} needs to make 10, and set that. Then set what is left of the {second}."
|
|
195
|
+
counters_hint-steps-to-ten-minus: "First work out how many to take away to bring {first} down to 10, and set that. Then set what is left of the {second}."
|
|
196
|
+
counters_add-take-to-ten: Down to ten
|
|
197
|
+
counters_goal-steps-to-ten-minus: "Split the {second} in {calc} into the part that takes {first} down to ten and the rest, then press Check."
|
|
198
|
+
counters_add-shelf-left: Left
|
|
@@ -14,8 +14,8 @@ counters_one-found: Bulunan ikililer
|
|
|
14
14
|
counters_one-ways: Tüm ikililer
|
|
15
15
|
counters_two-first: Kırmızı
|
|
16
16
|
counters_two-second: Mavi
|
|
17
|
-
counters_cup-first:
|
|
18
|
-
counters_cup-second:
|
|
17
|
+
counters_cup-first: Bilinen parça
|
|
18
|
+
counters_cup-second: Bilinmeyen parça
|
|
19
19
|
counters_cup-added: Eklenen mavi
|
|
20
20
|
counters_pins-first: Ayakta
|
|
21
21
|
counters_pins-empty: Devrilen
|
|
@@ -27,7 +27,6 @@ counters_fill: İkinci çerçeveyi doldur
|
|
|
27
27
|
counters_unfill: İkinci çerçeveyi boşalt
|
|
28
28
|
counters_lift: Bardağı kaldır
|
|
29
29
|
counters_lower: Bardağı geri koy
|
|
30
|
-
counters_check: Kontrol et
|
|
31
30
|
counters_blue: Mavi sayaçlar
|
|
32
31
|
counters_tray: Tepsi
|
|
33
32
|
counters_pile: Yığın
|
|
@@ -43,7 +42,7 @@ counters_list-splits: "{x} sayısının ayrımları"
|
|
|
43
42
|
counters_list-pairs: "{x} yapan ikililer"
|
|
44
43
|
counters_goal-make-whole: "Kırmızı tepside {part} sayaç var. Çerçeve {whole} sayaç tutacak biçimde mavi sayaçları ayarlayın, sonra Kontrol et düğmesine basın."
|
|
45
44
|
counters_goal-make-whole-two: "Kırmızı tepside {part} sayaç var. İki çerçeve {whole} sayaç tutacak biçimde mavi sayaçları ayarlayın, sonra Kontrol et düğmesine basın."
|
|
46
|
-
counters_goal-hidden-part: "Bütün {whole},
|
|
45
|
+
counters_goal-hidden-part: "Bütün {whole}, bilinen parça {part}. Bardağın altındaki parçayı tepside kurun, sonra bardağı kaldırın."
|
|
47
46
|
counters_note-short: Bazı hücreler hâlâ boş.
|
|
48
47
|
counters_note-over: Bazı sayaçlara hücre kalmadı.
|
|
49
48
|
counters_note-more: Tepside bardaktakinden çok sayaç var.
|
|
@@ -87,8 +86,8 @@ counters_set-up: Lobutları diz
|
|
|
87
86
|
counters_ctl-top: Üst sıra
|
|
88
87
|
counters_ctl-bottom: Alt sıra
|
|
89
88
|
counters_ctl-spread: Aralık
|
|
90
|
-
counters_match-unpaired:
|
|
91
|
-
counters_match-pairs:
|
|
89
|
+
counters_match-unpaired: Eşleşmeyen
|
|
90
|
+
counters_match-pairs: Eşleşenler
|
|
92
91
|
counters_word-same: Aynı
|
|
93
92
|
counters_tag-more: daha çok
|
|
94
93
|
counters_tag-fewer: daha az
|
|
@@ -133,22 +132,67 @@ counters_verdict-true: "doğru"
|
|
|
133
132
|
counters_verdict-false: "yanlış"
|
|
134
133
|
counters_sign: İşaret
|
|
135
134
|
counters_match-reading: Sözle
|
|
136
|
-
counters_match-verdict:
|
|
135
|
+
counters_match-verdict: İfade
|
|
137
136
|
counters_match-scoreboard-top: Ev sahibi
|
|
138
137
|
counters_match-scoreboard-bottom: Deplasman
|
|
139
138
|
counters_score-top: Ev sahibi golü
|
|
140
139
|
counters_score-bottom: Deplasman golü
|
|
141
140
|
counters_new-match: Yeni maç
|
|
142
141
|
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ı
|
|
144
|
-
counters_note-same-rows-bottom: Alt sıradaki bazı
|
|
142
|
+
counters_note-same-rows-top: Üst sıradaki bazı sayaçlar eşleşmedi.
|
|
143
|
+
counters_note-same-rows-bottom: Alt sıradaki bazı sayaçlar eşleşmedi.
|
|
145
144
|
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
145
|
counters_goal-one-less: "Üst sıraya alt sıradan bir sayaç az verin, sonra Kontrol et düğmesine basın."
|
|
147
146
|
counters_note-one-less-over: Üst sırada fazla sayaç var.
|
|
148
147
|
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ı
|
|
150
|
-
counters_goal-right-sign: "İki sıranın arasına
|
|
148
|
+
counters_hint-one-less: "Sıraları eşleştirin. Bir sayaç az olunca alt sıranın bir sayacı eşleşmeden kalır."
|
|
149
|
+
counters_goal-right-sign: "İki sıranın arasına ifadeyi doğru yapan işareti koyun, sonra Kontrol et düğmesine basın."
|
|
151
150
|
counters_note-right-sign-more: Üst sırada bu işaretin söylediğinden çok sayaç var.
|
|
152
151
|
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.
|
|
152
|
+
counters_hint-right-sign: "Her üst sayaçtan bir alt sayaca çizgi çizin. Eşleşmeyen sayacı kalan sırada daha çok sayaç vardır ve işaretin açık yanı ona bakar. Hiç sayaç kalmazsa işaret = olur."
|
|
154
153
|
counters_new-numbers: Yeni sayılar
|
|
154
|
+
counters_add-first: Birinci sayı
|
|
155
|
+
counters_add-second: İkinci sayı
|
|
156
|
+
counters_add-waiting: Bekleyen
|
|
157
|
+
counters_add-sum: Toplam
|
|
158
|
+
counters_add-dice-sum: Çerçevelerdeki sayaçlar
|
|
159
|
+
counters_add-roll: Zar at
|
|
160
|
+
counters_add-die: "{x} gösteren zar"
|
|
161
|
+
counters_add-counter-waiting: Bekleyen sayaç
|
|
162
|
+
counters_add-counter-joined: Bir araya getirilen sayaç
|
|
163
|
+
counters_add-take-second: Çıkan
|
|
164
|
+
counters_add-left: Fark
|
|
165
|
+
counters_add-take-counter: Sayaç
|
|
166
|
+
counters_add-take-ring: Çıkan sayacın halkası
|
|
167
|
+
counters_add-shelf-first: Sabah
|
|
168
|
+
counters_add-shelf-second: Öğleden sonra
|
|
169
|
+
counters_add-shelf-sum: Satılan
|
|
170
|
+
counters_add-shelf-written: Satılan kavanozlar
|
|
171
|
+
counters_add-shelf-written-left: Kalan kavanozlar
|
|
172
|
+
counters_add-shelf-reading: Satılan kavanozlar sözle
|
|
173
|
+
counters_add-shelf-reading-left: Kalan kavanozlar sözle
|
|
174
|
+
counters_add-shelf-crate: Satış kasası
|
|
175
|
+
counters_add-shelf-jar: Raftaki kavanoz
|
|
176
|
+
counters_add-sold-jar: "Kasadaki kavanoz, {x}"
|
|
177
|
+
counters_add-to-ten: 10'a tamamlayan
|
|
178
|
+
counters_add-rest: Diğer parça
|
|
179
|
+
counters_add-seedling: Fide
|
|
180
|
+
counters_add-sprout: Filiz
|
|
181
|
+
counters_add-seed-waiting: Paketteki tohum
|
|
182
|
+
counters_add-seed-joined: Viyoldeki filiz
|
|
183
|
+
counters_goal-find-sum: "{a} ile {b} sayısının toplamını Toplam düğmeleriyle ayarlayın, sonra Kontrol et düğmesine basın."
|
|
184
|
+
counters_goal-find-sum-done: "{a} sayaçlık bir grup ile {b} sayaçlık bir grup bir araya gelince {sum} eder."
|
|
185
|
+
counters_note-find-sum-less: "Toplam {n} sayısından küçük."
|
|
186
|
+
counters_note-find-sum-greater: "Toplam {n} sayısından büyük."
|
|
187
|
+
counters_hint-find-sum: "Çerçevelerde {a} kırmızı sayaç ve onlarla bir araya gelen {b} mavi sayaç düşünün. {a} sayısından başlayıp her mavi sayaç için bir sayı ileri sayın."
|
|
188
|
+
counters_goal-steps-to-ten: "{calc} için 10'a tamamlayan ve Diğer parça düğmelerini ayarlayın, sonra Kontrol et düğmesine basın."
|
|
189
|
+
counters_goal-steps-to-ten-done: "{line}; {toTen} ve {rest}."
|
|
190
|
+
counters_note-steps-to-ten-past: "{step}, 10'u geçiyor."
|
|
191
|
+
counters_note-steps-to-ten-short: "{step}, 10'a varmıyor."
|
|
192
|
+
counters_note-steps-to-ten-more: "10'a tamamlayan ve Diğer parça, {second} sayısından çok ediyor."
|
|
193
|
+
counters_note-steps-to-ten-less: "10'a tamamlayan ve Diğer parça, {second} sayısından az ediyor."
|
|
194
|
+
counters_hint-steps-to-ten-plus: "10'a tamamlayan, {first} ile 10 eden sayıdır. Diğer parça, {second} sayısından geriye kalandır."
|
|
195
|
+
counters_hint-steps-to-ten-minus: "Ona kadar, {first} sayısının dolu onluğundan sonraki sayaçların sayısıdır. Diğer parça, {second} sayısından geriye kalandır."
|
|
196
|
+
counters_add-take-to-ten: Ona kadar
|
|
197
|
+
counters_goal-steps-to-ten-minus: "{calc} için Ona kadar ve Diğer parça düğmelerini ayarlayın, sonra Kontrol et düğmesine basın."
|
|
198
|
+
counters_add-shelf-left: Kalan
|