requestHintfunction
Selects the next supplied witness group only while the run still matches its path; accepted hints mark the run assisted.
Import it
import { requestHint } from "@johnmorrisdotca/houseki/stone-collapse";
Definition
function requestHint(state: GameState): Transition
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The immutable native state to read or transition; the input is retained. |
Returns
Transition
Selects the next supplied witness group only while the run still matches its path; accepted hints mark the run assisted.
Examples
import { createGame, requestHint } from "@johnmorrisdotca/houseki/stone-collapse";
const state=createGame({seed:"docs"});
console.log(requestHint(state).accepted);falseWhat it prints (run when this page was built)