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

RackPlacetype

One tile's place: across and down in tile widths from where the rack starts. A lifted tile is above the row, so its y is negative.

Import it

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

Definition

type RackPlace = {
    x: number;
    y: number;
};

Members

NameTypeDescription
xnumber
ynumber

Examples

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

const value: RackPlace = {x:0,y:-5};
console.log(value);
{ x: 0, y: -5 }

What it prints (run when this page was built)

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