stackUpWinners関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The seats that won a game that is over: the one who emptied their stock, or at a stuck table those with the fewest cards left; empty while it is being played.
インポート
import { stackUpWinners } from "@johnmorrisdotca/toranpu/stack-up";
定義
function stackUpWinners(game: StackUpGame): number[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
game | StackUpGame | The current native game; applying a move returns a new state. |
戻り値
number[]
The seats that won.
例
import { stackUpWinners, startStackUp } from "@johnmorrisdotca/toranpu/stack-up";
console.log(stackUpWinners(startStackUp(15, ["Aki", "Ben"], undefined, 42)!));[]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。