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

matchClassfunction

THE MATCHING RULE. Two identical tiles match; under the usual rule a flower matches any flower and a season any season, since there is only one of each.

Import it

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

Definition

function matchClass(code: string, rule: MahjongBonusRule): string

Parameters

NameTypeDescription
codestring

The one-character face code or tile identifier.

ruleMahjongBonusRule

Grouped or identical bonus matching.

Returns

string

THE MATCHING RULE. Two identical tiles match; under the usual rule a flower matches any flower and a season any season, since there is only one of each.

Examples

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

console.log(matchClass("I","group"));
flowers

What it prints (run when this page was built)

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