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

suidoRolefunction

A level's part in its block's lesson, from the data the level script wrote (marks.data.ts), without its size's boards; null for none.

Import it

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

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

Definition

function suidoRole(size: string, level: number): TwistRole | null

Parameters

NameTypeDescription
sizestring

The native widthxheight size string, such as 5x5.

levelnumber

The one-based level number.

Returns

TwistRole | null

A level's part in its block's lesson, from the data the level script wrote (marks.data.ts), without its size's boards; null for none.

Examples

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

console.log(suidoRole("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.