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

reducedCandidatefunction

One board made by taking clues away, or null. The filling's lines are cut into pieces of about piece cells and joined again at random while one answer can be proved within budget dead ends; see the top of this file.

Import it

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

Definition

function reducedCandidate(size: number, random: Random, options?: ReduceOptions): ReducedCandidate | null

Parameters

NameTypeDescription
sizenumber

The number of cells on each side of the board.

randomRandom

A reproducible random source returning values in [0,1).

options (optional)ReduceOptions

Native drawing, geometry, game or mount settings.

Returns

ReducedCandidate | null

One board made by taking clues away, or null. The filling's lines are cut into pieces of about piece cells and joined again at random while one answer can be proved within budget dead ends; see the top of this file.

Examples

import { reducedCandidate, seededRandom } from "@johnmorrisdotca/tsunagi";

console.log(reducedCandidate(4,seededRandom(42),{budget:20000,longest:8,most:8}));

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