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 · Playable board

mountTsunagifunction

Draw a level into host and play it. Returns the handle that drives it, or null for a layout code that is no layout at that size.

Import it

import { mountTsunagi } from "@johnmorrisdotca/tsunagi/play";

Definition

function mountTsunagi(host: HTMLElement, options: TsunagiMountOptions): TsunagiMount | null

Parameters

NameTypeDescription
hostHTMLElement

The HTMLElement that owns the native interface.

optionsTsunagiMountOptions

Native settings and callbacks for this mounted interface.

Returns

TsunagiMount | null

The native mounted handle, or null for unsupported settings.

Examples

import { mountTsunagi } from "@johnmorrisdotca/tsunagi/play";
const show = (host: HTMLElement, options: Parameters<typeof mountTsunagi>[1]) => mountTsunagi(host, options);
console.log(typeof show); // function
function

What it prints (run when this page was built)

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