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 · Pipes, rules and solving

bigMasksOffunction

The masks of a big piece's four cells (clockwise from the top left) once it has been turned quarters quarters clockwise from facing north.

Import it

import { bigMasksOf } from "@johnmorrisdotca/suido";

Definition

function bigMasksOf(kind: BigKind | string, quarters: number): number[]

Parameters

NameTypeDescription
kindstring

The native network, drains or inlet-outlet rule.

quartersnumber

Clockwise quarter turns, per cell or for the piece specified by the signature.

Returns

number[]

The masks of a big piece's four cells (clockwise from the top left) once it has been turned quarters quarters clockwise from facing north.

Examples

import { bigMasksOf } from "@johnmorrisdotca/suido";

console.log(bigMasksOf("elbow",1));
[ 6, 10, 6, 5 ]

What it prints (run when this page was built)

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