リファレンス
難しさと学習の目印
import { … } from "@johnmorrisdotca/tsunagi/marks";
最小化と gzip 圧縮をしたサイズは 1.2 kB(読み込むものをすべて含み、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.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
TSUNAGI_MARKS | 定数 | The native difficulty digits for each classic size, one digit per level in level order. |
TSUNAGI_PORTAL_MARKS | 定数 | The native difficulty digits for portal levels, one digit per level in level order. |
TSUNAGI_ROLES | 定数 | The teaching or testing role of classic twist levels, keyed by size and one-based level number. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。