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 · Rules, solvers and generation

tsunagiMarksfunction

A level's measured difficulty, 1 (easiest) to 5, or null for a level the marks do not have.

Import it

import { tsunagiMarks } from "@johnmorrisdotca/tsunagi";

Definition

function tsunagiMarks(size: number, level: number, set?: TsunagiSet): number | null

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

levelnumber

The one-based level number.

set (optional)TsunagiSet

The native level set or palette specified by the signature.

Returns

number | null

A level's measured difficulty, 1 (easiest) to 5, or null for a level the marks do not have.

Examples

import { tsunagiMarks } from "@johnmorrisdotca/tsunagi";

console.log(tsunagiMarks(4,1));
1

What it prints (run when this page was built)

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