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 · Load fixed levels

levelSolutionfunction

The pieces of a row's answer, each facing as the answer has it; null for a row that is not a board and its turns.

Import it

import { levelSolution } from "@johnmorrisdotca/suido/levels";

Also exported from: @johnmorrisdotca/suido/levels-info

Definition

function levelSolution(row: LevelRow): number[] | null

Parameters

NameTypeDescription
rowLevelRow

The board code, quarter-turn digits and declared twists of one shipped level.

Returns

number[] | null

The pieces of a row's answer, each facing as the answer has it; null for a row that is not a board and its turns.

Examples

import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { levelSolution } from "@johnmorrisdotca/suido/levels";

const row = SUIDO_5X5[0];
console.log(levelSolution(row)?.length);
25

What it prints (run when this page was built)

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