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

twistRolefunction

A level's part in its block's lesson, or null for a level that has none (1 to 14 of a block, or a 15th or 16th with no twist).

Import it

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

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

Definition

function twistRole(rows: readonly LevelRow[], level: number): TwistRole | null

Parameters

NameTypeDescription
rowsreadonly LevelRow[]

The level rows whose twist lesson is examined.

levelnumber

The one-based level number.

Returns

TwistRole | null

A level's part in its block's lesson, or null for a level that has none (1 to 14 of a block, or a 15th or 16th with no twist).

Examples

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

console.log(twistRole(SUIDO_5X5,31));
{ role: 'teaches', twists: [ 'drains' ], newOnes: [ 'drains' ] }

What it prints (run when this page was built)

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