Reference · Pipes, rules and solving
makeSuidofunction
Makes a board with exactly one answer and says how hard it is. With a
difficulty asked for it makes boards (each its own seed, the first the
seed given) until one is within tolerance of it, or attempts have been
made, and gives the nearest. The board's seed is the one that made it, so
makeSuido({ ...options, seed: made.seed }) makes it again.
Import it
import { makeSuido } from "@johnmorrisdotca/suido";
Definition
function makeSuido(options?: MakeOptions): MadeScored
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | MakeOptions | Drawing, mounting or generator choices specified by the signature. |
Returns
MadeScored
Makes a board with exactly one answer and says how hard it is. With a difficulty asked for it makes boards (each its own seed, the first the seed given) until one is within tolerance of it, or attempts have been made, and gives the nearest. The board's seed is the one that made it, so makeSuido({ ...options, seed: made.seed }) makes it again.
Examples
import { makeSuido } from "@johnmorrisdotca/suido";
console.log(makeSuido({size:5,seed:42,difficulty:50,attempts:3}).difficulty);