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

openSuidoLevelsfunction

The levels of a size that are open, given the ones solved (openLevels).

Import it

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

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

Definition

function openSuidoLevels(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 levels of a size that are open, given the ones solved (openLevels).

Examples

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

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

What it prints (run when this page was built)

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