Skip to the content

Tsunagi繋ぎ

Join each pair with a separate line and fill the board, through fixed levels or seeded puzzles.

Tsunagi means joining in Japanese. About the name

Contents

Reference · Load level collections

levelSeedfunction

The number a record keeps a level by: its own for the first set, TSUNAGI_PORTAL_SEED and its number for the portals.

Import it

import { levelSeed } from "@johnmorrisdotca/tsunagi/levels";

Also exported from: @johnmorrisdotca/tsunagi

Definition

function levelSeed(set: TsunagiSet, level: number): number

Parameters

NameTypeDescription
setTsunagiSet

The native level set or palette specified by the signature.

levelnumber

The one-based level number.

Returns

number

The number a record keeps a level by: its own for the first set, TSUNAGI_PORTAL_SEED and its number for the portals.

Examples

import { levelSeed } from "@johnmorrisdotca/tsunagi/levels";

console.log(levelSeed("portals",1));
1001

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tsunagi 1.7.0.