CHALLENGES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
WHAT A TSUNAGI LEVEL ASKS OF A PLAYER, read from its board: the challenges on it, where it sits in its block's lesson, and how hard it measured. John, 2026-09-26: "at the bottom of every map, show the obstacles or difficulty level in one row… so the user can see that the level they are on has certain challenges", and of the block's last two: "users should know that the ninth [now 15th] would be a sort of experience and the 10th [16th] is the hardest".
Imports carry their .ts so the level script can read the same rules.
インポート
import { CHALLENGES } from "@johnmorrisdotca/tsunagi";
定義
const CHALLENGES: readonly Challenge[] = ["bridges", "walls", "waypoints", "wrap", "portals", "explosions", "strokes", "hexagon", "sparse"]
例
import { CHALLENGES } from "@johnmorrisdotca/tsunagi";
console.log(CHALLENGES);[
'bridges', 'walls',
'waypoints', 'wrap',
'portals', 'explosions',
'strokes', 'hexagon',
'sparse'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。