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 · SVG board

stepForfunction

The milliseconds the water takes through one cell, so that the deepest cell is reached in FILL_MS at most.

Import it

import { stepFor } from "@johnmorrisdotca/suido/draw";

Definition

function stepFor(deepest: number): number

Parameters

NameTypeDescription
deepestnumber

The greatest water depth, measured in cell steps.

Returns

number

The milliseconds the water takes through one cell, so that the deepest cell is reached in FILL_MS at most.

Examples

import { stepFor } from "@johnmorrisdotca/suido/draw";

console.log(stepFor(10));
90

What it prints (run when this page was built)

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