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

blendOffunction

The blend of a board's five percentiles against reference, 0 to 1, before it is ranked among the blends.

Import it

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

Definition

function blendOf(measure: Measure, reference: Reference): number

Parameters

NameTypeDescription
measureMeasure

The measured puzzle difficulty features.

referenceReference

The matching size, kind and wrap reference quantiles.

Returns

number

The blend of a board's five percentiles against reference, 0 to 1, before it is ranked among the blends.

Examples

import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { blendOf, decodeLayout, measureSuido, referenceFor } from "@johnmorrisdotca/suido";
import { levelSolution } from "@johnmorrisdotca/suido/levels";

const row = SUIDO_5X5[0];
const code = row[0];
const layout = decodeLayout(code)!;
const solution = levelSolution(row)!;
const measure = measureSuido(layout,solution);
const reference = referenceFor(layout);
console.log(blendOf(measure,reference));
0.015

What it prints (run when this page was built)

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