readRunfunction
Read a game at at.
Import it
import { readRun } from "@johnmorrisdotca/jarajara/awase";
Definition
function readRun(run: AwaseRun, at: number): AwaseRunReading
Parameters
| Name | Type | Description |
|---|---|---|
run | AwaseRun | The current immutable native challenge run. |
at | number | The supplied time in milliseconds, or the zero-based seat index specified by the signature. |
Returns
AwaseRunReading
Read a game at at.
Examples
import { generateAwase, readRun, startRun } from "@johnmorrisdotca/jarajara/awase";
const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(readRun(run,1000));{
state: 'run',
because: null,
tilesLeft: 8,
pairsFree: 1,
remainingMs: null,
goal: null,
multiplier: 1
}What it prints (run when this page was built)