noClues関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Create empty visibility clues on all four sides of a square grid.
インポート
import { noClues } from "@johnmorrisdotca/kazu";
定義
function noClues(size: number): TowerClues
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The supported square grid side length. |
戻り値
TowerClues
Create empty visibility clues on all four sides of a square grid.
例
import { noClues } from "@johnmorrisdotca/kazu";
console.log(noClues(4));{
top: [ 0, 0, 0, 0 ],
bottom: [ 0, 0, 0, 0 ],
left: [ 0, 0, 0, 0 ],
right: [ 0, 0, 0, 0 ]
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。