openSuidoLevelsfunction
The levels of a size that are open, given the ones solved (openLevels).
Import it
import { openSuidoLevels } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function openSuidoLevels(size: string, solved: ReadonlySet<number>): number
Parameters
| Name | Type | Description |
|---|---|---|
size | string | The native widthxheight size string, such as 5x5. |
solved | ReadonlySet<number> | The set of solved one-based level numbers. |
Returns
number
The levels of a size that are open, given the ones solved (openLevels).
Examples
import { openSuidoLevels } from "@johnmorrisdotca/suido/levels";
console.log(openSuidoLevels("5x5",new Set([1,2])));16What it prints (run when this page was built)