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

awaseRefusalfunction

A refusal: { ok: false }, the English reason and the code.

Import it

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

Definition

function awaseRefusal(code: AwaseCheckCode): Extract<AwaseCheck, { ok: false; }>

Parameters

NameTypeDescription
code"givens-not-deal" | "answer-not-moves" | "move-not-allowed" | "tiles-left"

Why the solve is not taken.

Returns

{ ok: false; reason: string; code: AwaseCheckCode; }

The refusal checkAwase gives.

Examples

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

console.log(awaseRefusal("tiles-left"));
{
  ok: false,
  reason: 'tiles are left on the layout',
  code: 'tiles-left'
}

What it prints (run when this page was built)

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