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 · SVG board

SuidoBoxtype

A board's size in the drawing's units: a hundred across a cell.

Import it

import type { SuidoBox } from "@johnmorrisdotca/suido/draw";

Definition

type SuidoBox = {
    width: number;
    height: number;
};

Members

NameTypeDescription
widthnumber
heightnumber

Examples

import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { decodeLayout } from "@johnmorrisdotca/suido";
import { boxOf } from "@johnmorrisdotca/suido/draw";
import type { SuidoBox } from "@johnmorrisdotca/suido/draw";

const row = SUIDO_5X5[0];
const code = row[0];
const layout = decodeLayout(code)!;
const box = boxOf(layout);
const value: SuidoBox = box;
console.log(value);
{ width: 500, height: 500 }

What it prints (run when this page was built)

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