runPairsfunction
Every pair that may be taken now: none once the game is over.
Import it
import { runPairs } from "@johnmorrisdotca/jarajara/awase";
Definition
function runPairs(run: AwaseRun): [number, number][]
Parameters
| Name | Type | Description |
|---|---|---|
run | AwaseRun | The current immutable native challenge run. |
Returns
[number, number][]
Every pair that may be taken now: none once the game is over.
Examples
import { generateAwase, runPairs, startRun } from "@johnmorrisdotca/jarajara/awase";
const deal = generateAwase(4,"easy",2026);
const run = startRun(deal,{},0);
console.log(runPairs(run));[ [ 4, 7 ] ]What it prints (run when this page was built)