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

shapeOffunction

The shape of a piece, from the sides it opens on.

Import it

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

Definition

function shapeOf(mask: number): Shape

Parameters

NameTypeDescription
masknumber

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

Returns

Shape

The shape of a piece, from the sides it opens on.

Examples

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

console.log(shapeOf(3));
elbow

What it prints (run when this page was built)

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