Reference · Rules, solvers and generation
reducedCandidatefunction
One board made by taking clues away, or null. The filling's lines are cut into
pieces of about piece cells and joined again at random while one answer can
be proved within budget dead ends; see the top of this file.
Import it
import { reducedCandidate } from "@johnmorrisdotca/tsunagi";
Definition
function reducedCandidate(size: number, random: Random, options?: ReduceOptions): ReducedCandidate | null
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
random | Random | A reproducible random source returning values in [0,1). |
options (optional) | ReduceOptions | Native drawing, geometry, game or mount settings. |
Returns
ReducedCandidate | null
One board made by taking clues away, or null. The filling's lines are cut into pieces of about piece cells and joined again at random while one answer can be proved within budget dead ends; see the top of this file.
Examples
import { reducedCandidate, seededRandom } from "@johnmorrisdotca/tsunagi";
console.log(reducedCandidate(4,seededRandom(42),{budget:20000,longest:8,most:8}));