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

levelBoardfunction

The board a row stands for, or null for a row whose code is not a board.

Import it

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

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

Definition

function levelBoard(row: LevelRow): Layout | null

Parameters

NameTypeDescription
rowLevelRow

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

Returns

Layout | null

The board a row stands for, or null for a row whose code is not a board.

Examples

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

const row = SUIDO_5X5[0];
console.log(levelBoard(row)?.width);
5

What it prints (run when this page was built)

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