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

suidoBigPiecesfunction

How many big pieces a level has among its ordinary ones, and the share of its board they cover: { count: 3, share: 0.24 } is three 2×2 pieces, twelve cells, on a board of fifty. The rest of the board is ordinary 1×1 pieces. Null for a number that is no level.

Import it

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

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

Definition

function suidoBigPieces(level: number): { count: number; share: number; } | null

Parameters

NameTypeDescription
levelnumber

The one-based level number.

Returns

{ count: number; share: number; } | null

How many big pieces a level has among its ordinary ones, and the share of its board they cover: { count: 3, share: 0.24 } is three 2×2 pieces, twelve cells, on a board of fifty. The rest of the board is ordinary 1×1 pieces. null for a number that is no level.

Examples

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

console.log(suidoBigPieces(1));
{ count: 1, share: 0.16 }

What it prints (run when this page was built)

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