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

readNotationfunction

The tiles a hand's notation writes, as codes in the order written; null when the text is not notation or names a tile there is not (8z).

Import it

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

Definition

function readNotation(text: string): string[] | null

Parameters

NameTypeDescription
textstring

The unknown text or encoded record to interpret.

Returns

string[] | null

The tiles a hand's notation writes, as codes in the order written; null when the text is not notation or names a tile there is not (8z).

Examples

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

console.log(readNotation("123m456p"));
[ 'a', 'b', 'c', 'm', 'n', 'o' ]

What it prints (run when this page was built)

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