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

oblongBoardfunction

A board wide by tall, written in a square of the longer side with the rest off the board. A square one is squareBoard.

Import it

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

Definition

function oblongBoard(wide: number, tall: number, more?: { blocked?: ReadonlySet<number>; }): TsunagiBoard

Parameters

NameTypeDescription
widenumber

The cells across.

tallnumber

The cells down.

more (optional){ blocked?: ReadonlySet<number>; }

The cells no line enters.

Returns

TsunagiBoard

The board as a graph.

Examples

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

console.log(oblongBoard(4,6).cells.length);
24

What it prints (run when this page was built)

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