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

MAHJONG_LAYOUTSconstant

The built-in native layouts in supported size order.

Import it

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

Definition

const MAHJONG_LAYOUTS: readonly MahjongLayout[] = [
    { size: 4, key: "tiny", slots: inOrder(TINY) },
    { size: 8, key: "torii", slots: inOrder(TORII) },
    { size: 9, key: "fuji", slots: inOrder(FUJI) },
    { size: 10, key: "castle", slots: inOrder(CASTLE) },
    { size: 15, key: "turtle", slots: inOrder(TURTLE) },
]

Examples

import { MAHJONG_LAYOUTS } from "@johnmorrisdotca/jarajara";
console.log(MAHJONG_LAYOUTS.map(layout=>[layout.size,layout.key,layout.slots.length]));
[
  [ 4, 'tiny', 8 ],
  [ 8, 'torii', 64 ],
  [ 9, 'fuji', 100 ],
  [ 10, 'castle', 120 ],
  [ 15, 'turtle', 144 ]
]

What it prints (run when this page was built)

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