Reference · Shared Awase table
isComputerSeatfunction
Whether a computer plays this seat.
Import it
import { isComputerSeat } from "@johnmorrisdotca/jarajara/table";
Definition
function isComputerSeat(table: AwaseTable, at: number): boolean
Parameters
| Name | Type | Description |
|---|---|---|
table | AwaseTable | The shared native table and its recorded pair takes. |
at | number | The supplied time in milliseconds, or the zero-based seat index specified by the signature. |
Returns
boolean
Whether a computer plays this seat.
Examples
import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import { isComputerSeat, startTable } from "@johnmorrisdotca/jarajara/table";
const deal = generateAwase(4,"easy",2026);
const table = startTable(deal,[{name:"Seat 1"},{name:"Seat 2"}]);
console.log(isComputerSeat(table,0));falseWhat it prints (run when this page was built)