Reference · Four-neighbour rules
orthogonalHintfunction
Gives a clue-only deduction; flags remain notes and cannot influence the result.
Import it
import { orthogonalHint } from "@johnmorrisdotca/jirai/orthogonal";
Also exported from: @johnmorrisdotca/jirai
Definition
function orthogonalHint(game: Game): Deduction
Parameters
| Name | Type | Description |
|---|---|---|
game | Game | The native game, or answer-free VisibleGame required by the signature. |
Returns
Deduction
Gives a clue-only deduction; flags remain notes and cannot influence the result.
Examples
import type { OrthogonalSettings } from "@johnmorrisdotca/jirai/orthogonal";
import { play } from "@johnmorrisdotca/jirai";
import { newOrthogonalGame, orthogonalHint } from "@johnmorrisdotca/jirai/orthogonal";
const orthogonalSettings: OrthogonalSettings={width:3,height:3,mines:1,noGuess:false,opening:"clear",seed:42};
const orthogonalGame=play(newOrthogonalGame(orthogonalSettings),{kind:"reveal",cell:0});
console.log(orthogonalHint(orthogonalGame));{
safe: [ 5, 6, 7, 8 ],
mines: [],
reason: 'total',
sources: [ 1 ],
contradiction: false
}What it prints (run when this page was built)