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

overlapsOnLayerfunction

Whether two slots of one layer overlap, which no layout may have: a tile cannot share a place.

Import it

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

Definition

function overlapsOnLayer(layout: MahjongLayout): boolean

Parameters

NameTypeDescription
layoutMahjongLayout

The native stacked tile positions.

Returns

boolean

Whether two slots of one layer overlap, which no layout may have: a tile cannot share a place.

Examples

import { layoutFor, overlapsOnLayer } from "@johnmorrisdotca/jarajara";

const layout = layoutFor(4)!;
console.log(overlapsOnLayer(layout));
false

What it prints (run when this page was built)

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