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

tsunagiLevelsOffunction

A size already loaded in a set, or a refusal: nothing answers for a list it does not have.

Import it

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

Definition

function tsunagiLevelsOf(size: number, set?: TsunagiSet): readonly LevelRow[]

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

set (optional)TsunagiSet

The native level set or palette specified by the signature.

Returns

readonly LevelRow[]

A size already loaded in a set, or a refusal: nothing answers for a list it does not have.

Examples

import { loadTsunagiLevels, tsunagiLevelsOf } from "@johnmorrisdotca/tsunagi/levels";

await loadTsunagiLevels(4);
console.log(tsunagiLevelsOf(4).length);
192

What it prints (run when this page was built)

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