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

compareEdgesfunction

Edges in the one order a layout writes them: by their first cell, then their second.

Import it

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

Definition

function compareEdges(x: string, y: string): number

Parameters

NameTypeDescription
xstring

The horizontal point, edge-code or coordinate value specified by this signature.

ystring

The vertical point, edge-code or coordinate value specified by this signature.

Returns

number

Edges in the one order a layout writes them: by their first cell, then their second.

Examples

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

console.log(compareEdges("1-2","1-5"));
-3

What it prints (run when this page was built)

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