meldsIn関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every meld that can be made from these cards: each set of three or four, and each run of three or more.
インポート
import { meldsIn } from "@johnmorrisdotca/toranpu/gin-rummy";
定義
function meldsIn(hand: readonly CardId[]): GinMeld[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
hand | readonly string[] | The player’s held cards, or the hand number for a deal. |
戻り値
GinMeld[]
Every meld that can be made from these cards: each set of three or four, and each run of three or more.
例
import { meldsIn } from "@johnmorrisdotca/toranpu/gin-rummy";
console.log(meldsIn(["3H", "4H", "5H", "AS"]));[ [ '3H', '4H', '5H' ] ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。