firstUnsolvedTsunagiLevel関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The lowest level not yet solved, or null when every level of the size is. It is always open: a block opens only once the block before is all solved, so the first gap is in the open blocks. Nobody is sent past a level they have not finished.
インポート
import { firstUnsolvedTsunagiLevel } from "@johnmorrisdotca/tsunagi/levels";
ほかのエクスポート元: @johnmorrisdotca/tsunagi
定義
function firstUnsolvedTsunagiLevel(size: number, solved: ReadonlySet<number>, set?: TsunagiSet): number | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The number of cells on each side of the board. |
solved | ReadonlySet<number> | Solved level numbers, or the solver metrics specified by this signature. |
set (省略可) | TsunagiSet | The native level set or palette specified by the signature. |
戻り値
number | null
The lowest level not yet solved, or null when every level of the size is. It is always open: a block opens only once the block before is all solved, so the first gap is in the open blocks. Nobody is sent past a level they have not finished.
例
import { firstUnsolvedTsunagiLevel } from "@johnmorrisdotca/tsunagi/levels";
console.log(firstUnsolvedTsunagiLevel(4,new Set([1,2])));3出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。