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

loadSuidoLevelsfunction

A size's levels, loaded once and kept.

Import it

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

Definition

function loadSuidoLevels(size: string): Promise<readonly LevelRow[]>

Parameters

NameTypeDescription
sizestring

The native widthxheight size string, such as 5x5.

Returns

Promise<readonly LevelRow[]>

A size's levels, loaded once and kept.

Examples

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

console.log((await loadSuidoLevels("5x5")).length);
256

What it prints (run when this page was built)

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