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 · Awase solitaire

PURGE_GROUPSconstant

The groups a purge may name, each a set of tiles a layout is likely to hold plenty of.

Import it

import { PURGE_GROUPS } from "@johnmorrisdotca/jarajara/awase";

Definition

const PURGE_GROUPS: readonly [{ readonly key: "characters"; readonly suits: readonly ["characters"]; }, { readonly key: "circles"; readonly suits: readonly ["circles"]; }, { readonly key: "bamboo"; readonly suits: readonly ["bamboo"]; }, { readonly key: "honours"; readonly suits: readonly ["winds", "dragons"]; }] = [
    { key: "characters", suits: ["characters"] },
    { key: "circles", suits: ["circles"] },
    { key: "bamboo", suits: ["bamboo"] },
    { key: "honours", suits: ["winds", "dragons"] },
] as const

Examples

import { PURGE_GROUPS } from "@johnmorrisdotca/jarajara/awase";
console.log(PURGE_GROUPS);
[
  { key: 'characters', suits: [ 'characters' ] },
  { key: 'circles', suits: [ 'circles' ] },
  { key: 'bamboo', suits: [ 'bamboo' ] },
  { key: 'honours', suits: [ 'winds', 'dragons' ] }
]

What it prints (run when this page was built)

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