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 · Tile and table elements

RackDetailtype

How the rack lies, for the page to hear of: what is turned, raised and marked (by place in tiles), and how the tiles are put in order.

Import it

import type { RackDetail } from "@johnmorrisdotca/jarajara/element";

Definition

type RackDetail = {
    tiles: string[];
    faceDown: boolean;
    turned: number[];
    lifted: number[];
    marked: number[];
    order: TileOrder;
    group: TileGrouping | null;
};

Members

NameTypeDescription
tilesstring[]
faceDownboolean
turnednumber[]
liftednumber[]
markednumber[]
orderTileOrder
groupTileGrouping | null

Examples

import type { RackDetail } from "@johnmorrisdotca/jarajara/element";

const value: RackDetail = {tiles:["a","b","c"],faceDown:false,turned:[],lifted:[],marked:[],order:"dealt",group:null};
console.log(value);
{
  tiles: [ 'a', 'b', 'c' ],
  faceDown: false,
  turned: [],
  lifted: [],
  marked: [],
  order: 'dealt',
  group: null
}

What it prints (run when this page was built)

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