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 · SVG faces and looks

TileSymbolOptionstype

How a set of symbols is made.

Import it

import type { TileSymbolOptions } from "@johnmorrisdotca/jarajara/faces";

Definition

type TileSymbolOptions = {
    design?: TileDesign;
    faces?: Iterable<string>;
    red?: boolean;
};

Members

NameTypeDescription
design (optional)TileDesign | undefined

A design's drawings instead of Jarajara's own.

faces (optional)Iterable<string> | undefined

Only these faces' symbols, for a board that holds few of them. Unless said, all 42.

red (optional)boolean | undefined

Also a symbol of each red five, <prefix>-e-red, for a design that has them.

Examples

import type { TileSymbolOptions } from "@johnmorrisdotca/jarajara/faces";

const value: TileSymbolOptions = {faces:["a","F"],red:true};
console.log(value);
{ faces: [ 'a', 'F' ], red: true }

What it prints (run when this page was built)

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