setsIn関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every set a hand holds, each as its three cards smallest first, in order.
インポート
import { setsIn } from "@johnmorrisdotca/tenka";
定義
function setsIn(hand: readonly TenkaCard[], map?: TenkaMap): TenkaCard[][]
引数
| 名前 | 型 | 説明 |
|---|---|---|
hand | readonly number[] | The cards held by a player. |
map (省略可) | TenkaMap | The native world or Europe map to use. |
戻り値
number[][]
Every set a hand holds, each as its three cards smallest first, in order.
例
import { setsIn } from "@johnmorrisdotca/tenka";
console.log(setsIn([0,1,2,42]));[ [ 0, 1, 2 ], [ 0, 1, 42 ], [ 0, 2, 42 ], [ 1, 2, 42 ] ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。