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
| Name | Type | Description |
|---|---|---|
rows | readonly LevelRow[] | The level rows whose twist lesson is examined. |
level | number | 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)