Reference · Rules, solvers and generation
strongestTsunagiHelpfunction
Of several helps, the one a solve is kept with: explosions off, then Cheat, then explosions softened.
Import it
import { strongestTsunagiHelp } from "@johnmorrisdotca/tsunagi";
Definition
function strongestTsunagiHelp(helps: readonly (TsunagiHelp | null)[]): TsunagiHelp | null
Parameters
| Name | Type | Description |
|---|---|---|
helps | readonly (TsunagiHelp | null)[] | Assistance flags from the solves to combine. |
Returns
TsunagiHelp | null
The most significant assistance flag, or null when all solves were unassisted.
Examples
import { strongestTsunagiHelp } from "@johnmorrisdotca/tsunagi";
console.log(strongestTsunagiHelp([null,"cheated","explosions-off"]));explosions-offWhat it prints (run when this page was built)