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 · Puzzle elements

KazuElementOptionstype

Host callbacks; the same actions also emit native events.

Import it

import type { KazuElementOptions } from "@johnmorrisdotca/kazu/element";

Also exported from: @johnmorrisdotca/kazu/element/define

Definition

type KazuElementOptions = Pick<KazuMountOptions, "onChange" | "onHint" | "onCheck" | "onSolve">;

Members

NameTypeDescription
onChange (optional)((detail: KazuEventDetail) => void) | undefined
onHint (optional)((detail: KazuEventDetail) => void) | undefined
onCheck (optional)((detail: KazuEventDetail) => void) | undefined
onSolve (optional)((detail: KazuEventDetail) => void) | undefined

Examples

import type { KazuElementOptions } from "@johnmorrisdotca/kazu/element";
const options: KazuElementOptions = {};
console.log(Object.keys(options).length); // 0
0

What it prints (run when this page was built)

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