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 · Shikaku rules

generateShikakuChallengefunction

Generate a seeded Shikaku puzzle with a verified unique answer; unsupported inputs or exhausted attempts throw.

Import it

import { generateShikakuChallenge } from "@johnmorrisdotca/kazu/shikaku";

Also exported from: @johnmorrisdotca/kazu

Definition

function generateShikakuChallenge(pack: ShikakuPackKey, challenge?: number): ShikakuChallengePuzzle

Parameters

NameTypeDescription
packShikakuPackKey

The square, wide or tall named challenge route.

challenge (optional)number

The one-based challenge number within the route.

Returns

ShikakuChallengePuzzle

Generate a seeded Shikaku puzzle with a verified unique answer; unsupported inputs or exhausted attempts throw.

Examples

import { generateShikakuChallenge } from "@johnmorrisdotca/kazu/shikaku";

console.log(generateShikakuChallenge("square",1));

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