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

runMovesfunction

A game's moves written as encodeMoves writes them, with its seed, so it can be replayed on the deal.

Import it

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

Definition

function runMoves(run: AwaseRun): readonly MahjongMove[]

Parameters

NameTypeDescription
runAwaseRun

The current immutable native challenge run.

Returns

readonly MahjongMove[]

A game's moves written as encodeMoves writes them, with its seed, so it can be replayed on the deal.

Examples

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

const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(runMoves(run));
[]

What it prints (run when this page was built)

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