openSuidoBigLevelsfunction
How many levels of the set are open, given the ones solved: the first block of sixteen, and each block after it once the block before is all solved.
Import it
import { openSuidoBigLevels } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function openSuidoBigLevels(solved: ReadonlySet<number>): number
Parameters
| Name | Type | Description |
|---|---|---|
solved | ReadonlySet<number> | The set of solved one-based level numbers. |
Returns
number
How many levels of the set are open, given the ones solved: the first block of sixteen, and each block after it once the block before is all solved.
Examples
import { openSuidoBigLevels } from "@johnmorrisdotca/suido/levels";
console.log(openSuidoBigLevels(new Set([1,2])));16What it prints (run when this page was built)