computerSeats関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The seats a computer plays, one a seat, from what the set-up said: a seat it said nothing about is a person's.
インポート
import { computerSeats } from "@johnmorrisdotca/toranpu";
定義
function computerSeats(count: number, computers?: readonly boolean[]): boolean[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
count | number | The requested number of cards, sounds or layout positions. |
computers (省略可) | readonly boolean[] | undefined | Flags by seat: true where a computer controls that seat. |
戻り値
boolean[]
The seats a computer plays, one a seat, from what the set-up said: a seat it said nothing about is a person's.
例
import { computerSeats } from "@johnmorrisdotca/toranpu";
console.log(computerSeats(4, [false, true]));[ false, true, false, false ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。