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

quartersBetweenfunction

The fewest quarter turns, clockwise, that make from into to; null when they are not the same shape.

Import it

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

Definition

function quartersBetween(from: number, to: number): number | null

Parameters

NameTypeDescription
fromnumber

The original pipe mask or mask array specified by the signature.

tonumber

The desired pipe mask or mask array specified by the signature.

Returns

number | null

The fewest quarter turns, clockwise, that make from into to; null when they are not the same shape.

Examples

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

console.log(quartersBetween(3,6));
1

What it prints (run when this page was built)

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