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

tileNamefunction

A tile's name in a language, from its code; the code itself for a letter that is no face.

Import it

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

Definition

function tileName(code: string, language?: TileLanguage): string

Parameters

NameTypeDescription
codestring

The one-character face code or tile identifier.

language (optional)TileLanguage

The English or Japanese display language.

Returns

string

A tile's name in a language, from its code; the code itself for a letter that is no face.

Examples

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

console.log(tileName("F","ja"));
中

What it prints (run when this page was built)

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