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

bigShapeOffunction

Which shape four masks make, and the fewest quarters clockwise from the shape's own facing (BigShape.masks) that bring it to them; null for four masks that are none of the 699: a blank cell, a ring, a pipe with no opening to the outside.

Import it

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

Definition

function bigShapeOf(masks: readonly number[]): { shape: BigShape; quarters: number; } | null

Parameters

NameTypeDescription
masksreadonly number[]

Current pipe masks in row-major cell order.

Returns

{ shape: BigShape; quarters: number; } | null

Which shape four masks make, and the fewest quarters clockwise from the shape's own facing (BigShape.masks) that bring it to them; null for four masks that are none of the 699: a blank cell, a ring, a pipe with no opening to the outside.

Examples

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

console.log(bigShapeOf(bigMasksOf("elbow",0))?.shape.id);
53a3

What it prints (run when this page was built)

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