sizeOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How big a maze is, in words a person picks by: under 150 cells is small, under 800 medium, under 4,000 large, and the rest huge.
インポート
import { sizeOf } from "@johnmorrisdotca/meikyuu/levels";
定義
function sizeOf(cells: number): MeikyuuSize
引数
| 名前 | 型 | 説明 |
|---|---|---|
cells | number | A cell-index path or total count specified by this signature. |
戻り値
"small" | "medium" | "large" | "huge"
How big a maze is, in words a person picks by: under 150 cells is small, under 800 medium, under 4,000 large, and the rest huge.
例
import { sizeOf } from "@johnmorrisdotca/meikyuu/levels";
console.log(sizeOf(100));small出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。