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
| Name | Type | Description |
|---|---|---|
size | string | The native widthxheight size string, such as 5x5. |
level | number | 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)