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

stoneLettersfunction

The characters that name pairs in a layout's cells: the first thirty-six (capitals and digits), or all eighty-two where the board uses every one of the thirty-six, which is when its small letters are stones and not waypoints.

Import it

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

Definition

function stoneLetters(cells: string): string

Parameters

NameTypeDescription
cellsstring

The row-major decoded cell values.

Returns

string

The characters that name pairs in a layout's cells: the first thirty-six (capitals and digits), or all eighty-two where the board uses every one of the thirty-six, which is when its small letters are stones and not waypoints.

Examples

import { TSUNAGI_4 } from "@johnmorrisdotca/tsunagi/levels-4";
import { stoneLetters } from "@johnmorrisdotca/tsunagi";

const givens = TSUNAGI_4[0][0];
console.log(stoneLetters(givens));
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

What it prints (run when this page was built)

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