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

KazuMountSettingstype

Everything about how a mounted board plays that can change while it is on the page.

Import it

import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";

Definition

type KazuMountSettings = Pick<KazuMountOptions, "hints" | "check" | "conflicts" | "peers" | "tidy" | "tapToStep" | "language" | "clock" | "controls">;

Members

NameTypeDescription
hints (optional)"place" | "show" | "off" | undefined

What Hint does: place writes the number it found (default), show only points at the cell and says why, off takes the button away.

check (optional)"show" | "off" | "count" | undefined

What Check does: count says how many cells are wrong (default), show marks them too, off takes the button away.

conflicts (optional)boolean | undefined

Draw the cells that break a rule in red as they are made. Default true.

peers (optional)boolean | undefined

Wash the chosen cell's row, column and group, and the cells holding its number. Default true.

tidy (optional)boolean | undefined

A number written takes itself out of the pencil marks of the cells it shares a group with. Default true.

tapToStep (optional)boolean | undefined

A tap on the chosen cell steps its number on. Default true.

language (optional)KazuLanguage | undefined

The language the words are in. Left out, the host's own lang, or the page's, and it follows the page's.

clock (optional)boolean | undefined

Show the clock, which starts on the first entry. Default true.

controls (optional)boolean | undefined

The number pad and the buttons under the board. Default true.

Examples

import type { KazuMountSettings } from "@johnmorrisdotca/kazu/play";

const value: KazuMountSettings = {language:"ja",hints:"off"};
console.log(value);
{ language: 'ja', hints: 'off' }

What it prints (run when this page was built)

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