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

AwaseOptionstype

What the options of a game say. Every field may be left out.

Import it

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

Definition

type AwaseOptions = {
    challenge?: AwaseChallenge | null;
    hints?: number | null;
    shuffles?: number | null;
    undo?: boolean;
};

Members

NameTypeDescription
challenge (optional)"gold" | "spark" | "rush" | "fortune" | "sand" | "purge" | "blackout" | null | undefined

A challenge to play the deal as. Unless said, plain Awase.

hints (optional)number | null | undefined

How many hints the game may use: a number, or null for as many as it likes (unless said).

shuffles (optional)number | null | undefined

How many shuffles: a number, or null for as many as it likes (unless said).

undo (optional)boolean | undefined

Whether a move may be taken back. Unless said, it may, unless the challenge forbids it.

Examples

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

const value: AwaseOptions = {challenge:"rush",hints:1,shuffles:1,undo:true};
console.log(value);
{ challenge: 'rush', hints: 1, shuffles: 1, undo: true }

What it prints (run when this page was built)

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