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

MahjongFacetype

One face of the set: its suit and its rank within it (1–9 for a suit, 1–4 or 1–3 for the rest).

Import it

import type { MahjongFace } from "@johnmorrisdotca/jarajara";

Definition

type MahjongFace = {
    code: string;
    suit: MahjongSuit;
    rank: number;
};

Members

NameTypeDescription
codestring
suitMahjongSuit
ranknumber

Examples

import { faceOf } from "@johnmorrisdotca/jarajara";
import type { MahjongFace } from "@johnmorrisdotca/jarajara";

const face = faceOf("a")!;
const value: MahjongFace = face;
console.log(value);
{ code: 'a', suit: 'characters', rank: 1 }

What it prints (run when this page was built)

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