generateJuosanfunction
Makes an original small training puzzle and returns it only after uniqueness is proved.
Import it
import { generateJuosan } from "@johnmorrisdotca/kazu/juosan";
Also exported from: @johnmorrisdotca/kazu
Definition
function generateJuosan(width?: number, height?: number, level?: JuosanLevel, seed?: number): JuosanPuzzle
Parameters
| Name | Type | Description |
|---|---|---|
width (optional) | number | The supported board width in cells. |
height (optional) | number | The supported board height in cells. |
level (optional) | JuosanLevel | The requested native difficulty tier. |
seed (optional) | number | The reproducible native puzzle seed. |
Returns
JuosanPuzzle
Makes an original small training puzzle and returns it only after uniqueness is proved.
Examples
import { generateJuosan } from "@johnmorrisdotca/kazu/juosan";
console.log(generateJuosan(3,2,"easy",42));