oblongBoard関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A board wide by tall, written in a square of the longer side with the rest off the board. A square one is squareBoard.
インポート
import { oblongBoard } from "@johnmorrisdotca/tsunagi";
定義
function oblongBoard(wide: number, tall: number, more?: { blocked?: ReadonlySet<number>; }): TsunagiBoard
引数
| 名前 | 型 | 説明 |
|---|---|---|
wide | number | The cells across. |
tall | number | The cells down. |
more (省略可) | { blocked?: ReadonlySet<number>; } | The cells no line enters. |
戻り値
TsunagiBoard
The board as a graph.
例
import { oblongBoard } from "@johnmorrisdotca/tsunagi";
console.log(oblongBoard(4,6).cells.length);24出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。