dealSizes関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The cards dealt to each seat in each deal of a game of this length: up to seven, and back down in the long game.
インポート
import { dealSizes } from "@johnmorrisdotca/toranpu/oh-hell";
定義
function dealSizes(size: number): number[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The game’s length or size, as defined by its table specification. |
戻り値
number[]
The cards dealt to each seat in each deal of a game of this length: up to seven, and back down in the long game.
例
import { dealSizes } from "@johnmorrisdotca/toranpu/oh-hell";
import { CARD_GAME_TABLES } from "@johnmorrisdotca/toranpu";
console.log(dealSizes(CARD_GAME_TABLES.ohHell.defaultSize));[
1, 2, 3, 4, 5, 6,
7, 6, 5, 4, 3, 2,
1
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。