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

setInventoryfunction

The whole set as an inventory: each of the 42 faces and how many of it the 144 tiles hold.

Import it

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

Definition

function setInventory(): { face: MahjongFace; copies: number; }[]

Returns

{ face: MahjongFace; copies: number; }[]

The whole set as an inventory: each of the 42 faces and how many of it the 144 tiles hold.

Examples

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

console.log(setInventory().reduce((n,row)=>n+row.copies,0));
144

What it prints (run when this page was built)

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