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
| Name | Type | Description |
|---|---|---|
seed | number | 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));groupWhat it prints (run when this page was built)