Reference · Rules, solvers and generation
helpOpensNextfunction
Whether a solve with this help (or none) opens what a solve opens: every help but explosions off, whose block's lesson was not played.
Import it
import { helpOpensNext } from "@johnmorrisdotca/tsunagi";
Definition
function helpOpensNext(help: TsunagiHelp | null): boolean
Parameters
| Name | Type | Description |
|---|---|---|
help | TsunagiHelp | null | The solve’s assistance flag, or null for no help. |
Returns
boolean
Whether a solve with this help (or none) opens what a solve opens: every help but explosions off, whose block's lesson was not played.
Examples
import { helpOpensNext } from "@johnmorrisdotca/tsunagi";
console.log(helpOpensNext("cheated"));trueWhat it prints (run when this page was built)