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

bonusRuleOfSeedfunction

The native matching rule encoded by a seed: identical bonuses in the reserved block, grouped bonuses otherwise.

Import it

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

Definition

function bonusRuleOfSeed(seed: number): MahjongBonusRule

Parameters

NameTypeDescription
seednumber

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

Returns

MahjongBonusRule

The native matching rule encoded by a seed: identical bonuses in the reserved block, grouped bonuses otherwise.

Examples

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

console.log(bonusRuleOfSeed(2026));
group

What it prints (run when this page was built)

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