hasamiRoster関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Returns the ordered private setup roster for the selected square board size.
インポート
import { hasamiRoster } from "@johnmorrisdotca/gunjin/hasami";
定義
function hasamiRoster(size: 7 | 9): readonly string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | 7 | 9 | A supported board size; Hasami accepts 7 or 9 square holes per side. |
戻り値
readonly string[]
Returns the ordered private setup roster for the selected square board size.
例
import { hasamiRoster } from "@johnmorrisdotca/gunjin/hasami";
console.log(hasamiRoster(7));[
'leader', 'guard',
'guard', 'guard',
'guard', 'guard',
'guard'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。