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 · Playable number grid

mountKazufunction

Draw a puzzle into host and play it. Returns the handle that drives it, or null for givens that are not a puzzle of that kind and side.

Import it

import { mountKazu } from "@johnmorrisdotca/kazu/play";

Definition

function mountKazu(host: HTMLElement, options: KazuMountOptions): KazuMount | null

Parameters

NameTypeDescription
hostHTMLElement

The HTMLElement that owns the native interface.

optionsKazuMountOptions

Native settings and callbacks for this mounted interface.

Returns

KazuMount | null

The native mounted handle, or null for unsupported settings.

Examples

import { mountKazu } from "@johnmorrisdotca/kazu/play";
const show = (host: HTMLElement, options: Parameters<typeof mountKazu>[1]) => mountKazu(host, options);
console.log(typeof show); // function
function

What it prints (run when this page was built)

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