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

groupWordsfunction

What a group is called, in English and in Japanese.

Import it

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

Definition

function groupWords(group: TileGroup, language?: TileLanguage): string

Parameters

NameTypeDescription
group"characters" | "circles" | "bamboo" | "honours" | "winds" | "dragons" | "flowers" | "seasons" | "numbers" | "bonus" | "terminals" | "simples"

The native tile group identifier.

language (optional)TileLanguage

The English or Japanese display language.

Returns

string

What a group is called, in English and in Japanese.

Examples

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

console.log(groupWords("dragons","ja"));
三元牌

What it prints (run when this page was built)

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