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

armsOffunction

How many sides a piece opens on.

Import it

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

Definition

function armsOf(mask: number): number

Parameters

NameTypeDescription
masknumber

A pipe mask: north 1, east 2, south 4 and west 8.

Returns

number

How many sides a piece opens on.

Examples

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

console.log(armsOf(3));
2

What it prints (run when this page was built)

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