deckOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The deck a deal string names, as card numbers, or null for one that is not a whole deck.
インポート
import { deckOf } from "@johnmorrisdotca/toranpu/klondike";
ほかのエクスポート元: @johnmorrisdotca/toranpu/freecell
定義
function deckOf(deal: string): number[] | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
deal | string | The deal number or dealing specification. |
戻り値
number[] | null
The deck a deal string names, as card numbers, or null for one that is not a whole deck.
例
import { dealOfSeed, deckOf } from "@johnmorrisdotca/toranpu/klondike";
console.log(deckOf(dealOfSeed(42))?.slice(0, 7));[
41, 47, 14, 25,
51, 34, 6
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。