Reference · Rules, solvers and generation
tsunagiRolefunction
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 { tsunagiRole } from "@johnmorrisdotca/tsunagi";
Definition
function tsunagiRole(size: number, level: number, set?: TsunagiSet): TwistRole | null
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
level | number | The one-based level number. |
set (optional) | TsunagiSet | The native level set or palette specified by the signature. |
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 { tsunagiRole } from "@johnmorrisdotca/tsunagi";
console.log(tsunagiRole(4,15));nullWhat it prints (run when this page was built)