Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

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

NameTypeDescription
tableAwaseTable

The shared native table and its recorded pair takes.

atnumber

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));
false

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.