Reference · Load level collections
tsunagiBandfunction
Which third of a size a level sits in: its first third easy, its middle medium, its last hard.
Import it
import { tsunagiBand } from "@johnmorrisdotca/tsunagi/levels";
Also exported from: @johnmorrisdotca/tsunagi
Definition
function tsunagiBand(size: number, level: number, set?: TsunagiSet): TsunagiBand
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
TsunagiBand
Which third of a size a level sits in: its first third easy, its middle medium, its last hard.
Examples
import { tsunagiBand } from "@johnmorrisdotca/tsunagi/levels";
console.log(tsunagiBand(4,1));easyWhat it prints (run when this page was built)