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

runStartfunction

Start the clock, if the game has one and it has not started.

Import it

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

Definition

function runStart(run: AwaseRun, at: number): AwaseRun

Parameters

NameTypeDescription
runAwaseRun

The current immutable native challenge run.

atnumber

The supplied time in milliseconds, or the zero-based seat index specified by the signature.

Returns

AwaseRun

Start the clock, if the game has one and it has not started.

Examples

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

const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(runStart(run,1000).bankAt);
null

What it prints (run when this page was built)

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