CardSeats型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Who sits in each seat: the name the set-up gave, and whether a computer plays it.
インポート
import type { CardSeats } from "@johnmorrisdotca/toranpu";
定義
type CardSeats = {
players: readonly string[];
computers: readonly boolean[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
players | readonly string[] | |
computers | readonly boolean[] | One a seat: true where a computer plays it. A seat nobody named a computer for is a person's. |
例
import type { CardSeats } from "@johnmorrisdotca/toranpu";
const value: CardSeats = { players: ["Aki", "Ben"], computers: [false, true] };
console.log(value.computers);[ false, true ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。