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

blockRangefunction

A block's first and last level, the last no further than the size has.

Import it

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

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

Definition

function blockRange(block: number, count: number): { first: number; last: number; }

Parameters

NameTypeDescription
blocknumber

The zero-based ladder block index, or decoded four-cell block specified by the signature.

countnumber

The total number of levels.

Returns

{ first: number; last: number; }

A block's first and last level, the last no further than the size has.

Examples

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

console.log(blockRange(1,256));
{ first: 1, last: 16 }

What it prints (run when this page was built)

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