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

AwaseDealtype

A deal of Awase: its layout's size, its level and seed, the tiles where they lie, and one way to clear them.

Import it

import type { AwaseDeal } from "@johnmorrisdotca/jarajara/awase";

Also exported from: @johnmorrisdotca/jarajara

Definition

type AwaseDeal = {
    size: number;
    level: AwaseLevel;
    seed: number;
    givens: string;
    solution: string;
};

Members

NameTypeDescription
sizenumber
levelAwaseLevel
seednumber
givensstring
solutionstring

Examples

import { generateAwase } from "@johnmorrisdotca/jarajara/awase";
import type { AwaseDeal } from "@johnmorrisdotca/jarajara/awase";

const deal = generateAwase(4,"easy",2026);
const value: AwaseDeal = deal;
console.log(value);
{
  size: 4,
  level: 'easy',
  seed: 2026,
  givens: 'xPNxDBBD',
  solution: '0407060503000201'
}

What it prints (run when this page was built)

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