Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Juosan rules

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

NameTypeDescription
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));

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.