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

tablePlayersAskedfunction

A players count from an address, or 1 (the solitaire) for anything that is not two to four.

Import it

import { tablePlayersAsked } from "@johnmorrisdotca/jarajara/table";

Definition

function tablePlayersAsked(value: unknown): number

Parameters

NameTypeDescription
valueunknown

The unknown player-count value to normalize.

Returns

number

A players count from an address, or 1 (the solitaire) for anything that is not two to four.

Examples

import { tablePlayersAsked } from "@johnmorrisdotca/jarajara/table";

console.log(tablePlayersAsked("3"));
3

What it prints (run when this page was built)

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