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 · Load fixed levels

nextSuidoLevelfunction

The level of a size to open on (nextLevel).

Import it

import { nextSuidoLevel } from "@johnmorrisdotca/suido/levels";

Also exported from: @johnmorrisdotca/suido/levels-info

Definition

function nextSuidoLevel(size: string, solved: ReadonlySet<number>): number

Parameters

NameTypeDescription
sizestring

The native widthxheight size string, such as 5x5.

solvedReadonlySet<number>

The set of solved one-based level numbers.

Returns

number

The level of a size to open on (nextLevel).

Examples

import { nextSuidoLevel } from "@johnmorrisdotca/suido/levels";

console.log(nextSuidoLevel("5x5",new Set([1,2])));
3

What it prints (run when this page was built)

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