suidoBigPiecesfunction
How many big pieces a level has among its ordinary ones, and the share of its board they cover: { count: 3, share: 0.24 } is three 2×2 pieces, twelve
cells, on a board of fifty. The rest of the board is ordinary 1×1 pieces. Null for a number that is no level.
Import it
import { suidoBigPieces } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function suidoBigPieces(level: number): { count: number; share: number; } | null
Parameters
| Name | Type | Description |
|---|---|---|
level | number | The one-based level number. |
Returns
{ count: number; share: number; } | null
How many big pieces a level has among its ordinary ones, and the share of its board they cover: { count: 3, share: 0.24 } is three 2×2 pieces, twelve cells, on a board of fifty. The rest of the board is ordinary 1×1 pieces. null for a number that is no level.
Examples
import { suidoBigPieces } from "@johnmorrisdotca/suido/levels";
console.log(suidoBigPieces(1));{ count: 1, share: 0.16 }What it prints (run when this page was built)