Skip to the content

Suido水道

Turn pipes to connect the pumps and drains, through fixed levels or seeded puzzles.

Suido means water supply in Japanese. About the name

Contents

Reference · Pipes, rules and solving

laySuidofunction

A board laid out and turned at random, with no promise about how many answers it has: the raw material makeSuido shapes. Its solution is one answer.

Import it

import { laySuido } from "@johnmorrisdotca/suido";

Definition

function laySuido(options?: MakeOptions): Made

Parameters

NameTypeDescription
options (optional)MakeOptions

Drawing, mounting or generator choices specified by the signature.

Returns

Made

A board laid out and turned at random, with no promise about how many answers it has: the raw material makeSuido shapes. Its solution is one answer.

Examples

import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { laySuido } from "@johnmorrisdotca/suido";

const row = SUIDO_5X5[0];
const code = row[0];
console.log(laySuido({size:5,seed:42}).code);

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