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

tilesMatchfunction

Whether two tile face codes match under the selected bonus rule.

Import it

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

Definition

function tilesMatch(a: string, b: string, rule: MahjongBonusRule): boolean

Parameters

NameTypeDescription
astring

The first tile slot or code specified by this signature.

bstring

The second tile slot or code specified by this signature.

ruleMahjongBonusRule

Grouped or identical bonus matching.

Returns

boolean

Whether two tile face codes match under the selected bonus rule.

Examples

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

console.log(tilesMatch("I","J","group"));
true

What it prints (run when this page was built)

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