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

blockRangefunction

A block's first and last level, the last no further than the size has.

Import it

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

Definition

function blockRange(block: number, count: number): { first: number; last: number; }

Parameters

NameTypeDescription
blocknumber

The zero-based block index.

countnumber

The number of portals or levels specified by this signature.

Returns

{ first: number; last: number; }

A block's first and last level, the last no further than the size has.

Examples

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

console.log(blockRange(1,192));
{ first: 1, last: 16 }

What it prints (run when this page was built)

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