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

generateAwasefunction

A deal of this layout at this level, made from this seed.

Import it

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

Definition

function generateAwase(size: number, level: AwaseLevel, seed: number): AwaseDeal

Parameters

NameTypeDescription
sizenumber

The native layout size identifier, measured in tiles across.

levelAwaseLevel

The requested easy, medium or hard seeded deal.

seednumber

The numeric seed used to reproduce the deal or its matching rule.

Returns

AwaseDeal

A deal of this layout at this level, made from this seed.

Examples

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

console.log(generateAwase(4,"easy",2026).givens);
xPNxDBBD

What it prints (run when this page was built)

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