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

edgeKeyfunction

An edge between two neighbouring cells, the same whichever way round they are named.

Import it

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

Definition

function edgeKey(a: number, b: number): string

Parameters

NameTypeDescription
anumber

The first cell index.

bnumber

The second cell index.

Returns

string

An edge between two neighbouring cells, the same whichever way round they are named.

Examples

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

console.log(edgeKey(1,2));
1-2

What it prints (run when this page was built)

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