runRemainingfunction
How much time the game has left at at, in milliseconds; null for a game with no clock.
Import it
import { runRemaining } from "@johnmorrisdotca/jarajara/awase";
Definition
function runRemaining(run: AwaseRun, at: number): number | null
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
number | null
How much time the game has left at at, in milliseconds; null for a game with no clock.
Examples
import { generateAwase, runRemaining, startRun } from "@johnmorrisdotca/jarajara/awase";
const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(runRemaining(run,1000));nullWhat it prints (run when this page was built)