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 · SVG faces and looks

faceWordsfunction

What a face is called, in English: "3 of characters", "east wind", "red dragon", "plum (flower)".

Import it

import { faceWords } from "@johnmorrisdotca/jarajara/faces";

Also exported from: @johnmorrisdotca/jarajara

Definition

function faceWords(face: MahjongFace): string

Parameters

NameTypeDescription
faceMahjongFace

The decoded suit and rank of one tile face.

Returns

string

What a face is called, in English: "3 of characters", "east wind", "red dragon", "plum (flower)".

Examples

import { faceOf } from "@johnmorrisdotca/jarajara";
import { faceWords } from "@johnmorrisdotca/jarajara/faces";

const face = faceOf("a")!;
console.log(faceWords(face));
1 of characters

What it prints (run when this page was built)

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