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 · Tiles, layouts and deals

pairGoesAgainfunction

Whether taking this pair gives its taker another turn at the table: a flower or season pair.

Import it

import { pairGoesAgain } from "@johnmorrisdotca/jarajara";

Definition

function pairGoesAgain(code: string): boolean

Parameters

NameTypeDescription
codestring

The one-character face code or tile identifier.

Returns

boolean

Whether taking this pair gives its taker another turn at the table: a flower or season pair.

Examples

import { pairGoesAgain } from "@johnmorrisdotca/jarajara";

console.log(pairGoesAgain("I"));
true

What it prints (run when this page was built)

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