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

writeTilesfunction

Tiles as their one-letter codes run together, abcF: what readTiles reads and a layout's cells are written in.

Import it

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

Definition

function writeTiles(codes: Iterable<string>): string

Parameters

NameTypeDescription
codesIterable<string>

The tile face codes in current order.

Returns

string

Tiles as their one-letter codes run together, abcF: what readTiles reads and a layout's cells are written in.

Examples

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

console.log(writeTiles(["a","b","c"]));
abc

What it prints (run when this page was built)

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