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

DIFFICULTY_WEIGHTSconstant

The weights of the measures in the blend, for each kind.

Import it

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

Definition

const DIFFICULTY_WEIGHTS: Record<Kind, Record<MeasureName, number>> = {
    network: { obscure: 0.25, rounds: 0.3, unsettled: 0.2, guessing: 0.25, spares: 0 },
    drains: { obscure: 0.2, rounds: 0.25, unsettled: 0.15, guessing: 0.2, spares: 0.2 },
    "inlet-outlet": { obscure: 0.2, rounds: 0.25, unsettled: 0.15, guessing: 0.2, spares: 0.2 },
}

Members

NameTypeDescription
drainsRecord<MeasureName, number>
inlet-outletRecord<MeasureName, number>
networkRecord<MeasureName, number>

Examples

import { DIFFICULTY_WEIGHTS } from "@johnmorrisdotca/suido";
console.log(DIFFICULTY_WEIGHTS);
{
  network: {
    obscure: 0.25,
    rounds: 0.3,
    unsettled: 0.2,
    guessing: 0.25,
    spares: 0
  },
  drains: {
    obscure: 0.2,
    rounds: 0.25,
    unsettled: 0.15,
    guessing: 0.2,
    spares: 0.2
  },
  'inlet-outlet': {
    obscure: 0.2,
    rounds: 0.25,
    unsettled: 0.15,
    guessing: 0.2,
    spares: 0.2
  }
}

What it prints (run when this page was built)

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