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

groupFacesfunction

The faces of a group, in the set's order.

Import it

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

Definition

function groupFaces(group: TileGroup): MahjongFace[]

Parameters

NameTypeDescription
group"characters" | "circles" | "bamboo" | "honours" | "winds" | "dragons" | "flowers" | "seasons" | "numbers" | "bonus" | "terminals" | "simples"

The native tile group identifier.

Returns

MahjongFace[]

The faces of a group, in the set's order.

Examples

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

console.log(groupFaces("dragons"));
[
  { code: 'F', suit: 'dragons', rank: 1 },
  { code: 'G', suit: 'dragons', rank: 2 },
  { code: 'H', suit: 'dragons', rank: 3 }
]

What it prints (run when this page was built)

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