computerSeatsfunction
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 it
import { computerSeats } from "@johnmorrisdotca/toranpu";
Definition
function computerSeats(count: number, computers?: readonly boolean[]): boolean[]
Parameters
| Name | Type | Description |
|---|---|---|
count | number | The requested number of cards, sounds or layout positions. |
computers (optional) | readonly boolean[] | undefined | Flags by seat: true where a computer controls that seat. |
Returns
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.
Examples
import { computerSeats } from "@johnmorrisdotca/toranpu";
console.log(computerSeats(4, [false, true]));[ false, true, false, false ]What it prints (run when this page was built)