CardSeatstype
Who sits in each seat: the name the set-up gave, and whether a computer plays it.
Import it
import type { CardSeats } from "@johnmorrisdotca/toranpu";
Definition
type CardSeats = {
players: readonly string[];
computers: readonly boolean[];
};
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
import type { CardSeats } from "@johnmorrisdotca/toranpu";
const value: CardSeats = { players: ["Aki", "Ben"], computers: [false, true] };
console.log(value.computers);[ false, true ]What it prints (run when this page was built)