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

makeSuidofunction

Makes a board with exactly one answer and says how hard it is. With a difficulty asked for it makes boards (each its own seed, the first the seed given) until one is within tolerance of it, or attempts have been made, and gives the nearest. The board's seed is the one that made it, so makeSuido({ ...options, seed: made.seed }) makes it again.

Import it

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

Definition

function makeSuido(options?: MakeOptions): MadeScored

Parameters

NameTypeDescription
options (optional)MakeOptions

Drawing, mounting or generator choices specified by the signature.

Returns

MadeScored

Makes a board with exactly one answer and says how hard it is. With a difficulty asked for it makes boards (each its own seed, the first the seed given) until one is within tolerance of it, or attempts have been made, and gives the nearest. The board's seed is the one that made it, so makeSuido({ ...options, seed: made.seed }) makes it again.

Examples

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

console.log(makeSuido({size:5,seed:42,difficulty:50,attempts:3}).difficulty);

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