runTickfunction
The game as it stands at at: lost, if its time has run out. Nothing else changes with the clock, so a page may call
this as often as it likes.
Import it
import { runTick } from "@johnmorrisdotca/jarajara/awase";
Definition
function runTick(run: AwaseRun, at: number): AwaseRun
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
AwaseRun
The game as it stands at at: lost, if its time has run out. Nothing else changes with the clock, so a page may call this as often as it likes.
Examples
import { generateAwase, runTick, startRun } from "@johnmorrisdotca/jarajara/awase";
const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(runTick(run,1000).over);nullWhat it prints (run when this page was built)