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
| 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
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);nullWhat it prints (run when this page was built)