diceWarPeopleToRoll関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The seats whose dice a move must hand in now: the people among those who roll. A table of computers needs none.
インポート
import { diceWarPeopleToRoll } from "@johnmorrisdotca/korokoro";
定義
function diceWarPeopleToRoll(game: DiceWarGame): number[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
game | DiceWarGame | The current Dice War state. |
戻り値
number[]
The seats whose dice a move must hand in now: the people among those who roll. A table of computers needs none.
例
import { diceWarPeopleToRoll } from "@johnmorrisdotca/korokoro";
import { startDiceWar } from "@johnmorrisdotca/korokoro";
console.log(diceWarPeopleToRoll(startDiceWar({ players: ["One", "Two"], seed: "table" })!));[ 0, 1 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。