stackUpMoves関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every move the seat to play may make: each card that fits a building pile, from the hand, the stock or a discard pile; each card of the hand on each discard pile; and a pass when the hand is empty.
インポート
import { stackUpMoves } from "@johnmorrisdotca/toranpu/stack-up";
定義
function stackUpMoves(game: StackUpGame): StackUpMove[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
game | StackUpGame | The current native game; applying a move returns a new state. |
戻り値
StackUpMove[]
Every move the seat to play may make.
例
import { stackUpMoves, startStackUp } from "@johnmorrisdotca/toranpu/stack-up";
console.log(stackUpMoves(startStackUp(15, ["Aki", "Ben"], undefined, 42)!).length);24出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。