Reference
Difficulty and lesson marks
import { … } from "@johnmorrisdotca/tsunagi/marks";
1.2 kB minified and gzipped, with everything it imports (measured with esbuild)
EVERY TSUNAGI LEVEL'S DIFFICULTY, 1 TO 5: one digit a level, level 1 first,
from its measured score (difficulty.ts) among every level of its size —
the marks the row under a board shows. And each twist level's part in its
block's lesson (twistRole), so the board of levels and the row can say it
without loading a size's boards. The portal levels' marks are the same,
a size's among its own levels. Written by node scripts/tsunagi-levels.ts,
tsunagi-levels-big.ts, tsunagi-levels-huge.ts and tsunagi-levels-portals.ts,
never by hand; difficulty.test.ts and ladder.test.ts hold both to the levels.
Exports
| Name | Kind | What it is |
|---|---|---|
TSUNAGI_MARKS | constant | The native difficulty digits for each classic size, one digit per level in level order. |
TSUNAGI_PORTAL_MARKS | constant | The native difficulty digits for portal levels, one digit per level in level order. |
TSUNAGI_ROLES | constant | The teaching or testing role of classic twist levels, keyed by size and one-based level number. |