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

SHAPE_MASKSconstant

A piece of each shape facing north, as the drawings and the tests name them.

Import it

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

Definition

const SHAPE_MASKS: Record<Shape, number> = {
    blank: 0,
    end: NORTH,
    straight: NORTH | SOUTH,
    elbow: NORTH | EAST,
    tee: NORTH | EAST | SOUTH,
    cross: 15,
}

Members

NameTypeDescription
endnumber
straightnumber
elbownumber
teenumber
blanknumber
crossnumber

Examples

import { SHAPE_MASKS } from "@johnmorrisdotca/suido";
console.log(SHAPE_MASKS);
{ blank: 0, end: 1, straight: 5, elbow: 3, tee: 7, cross: 15 }

What it prints (run when this page was built)

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