cribbagePlayable関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The cards a seat may play on the count now: any that keeps it to thirty-one.
インポート
import { cribbagePlayable } from "@johnmorrisdotca/toranpu/cribbage";
定義
function cribbagePlayable(hand: readonly CardId[], count: number): CardId[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
hand | readonly string[] | The player’s held cards, or the hand number for a deal. |
count | number | The requested number of cards, sounds or layout positions. |
戻り値
string[]
The cards a seat may play on the count now: any that keeps it to thirty-one.
例
import { cribbagePlayable } from "@johnmorrisdotca/toranpu/cribbage";
console.log(cribbagePlayable(["AS", "5H", "KS"], 25));[ 'AS', '5H' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。