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

referenceKeyfunction

The key a reference set is kept under.

Import it

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

Definition

function referenceKey(side: number, kind: Kind, wrap: boolean): string

Parameters

NameTypeDescription
sidenumber

A side index from 0 north to 3 west, or reference-board side length specified by the signature.

kindKind

The native network, drains or inlet-outlet rule.

wrapboolean

Whether opposite board edges connect.

Returns

string

The key a reference set is kept under.

Examples

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

console.log(referenceKey(5,"network",false));
5

What it prints (run when this page was built)

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