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 · Number-puzzle engines

KazuSpectype

What one puzzle offers.

Import it

import type { KazuSpec } from "@johnmorrisdotca/kazu";

Definition

type KazuSpec = {
    sizes: readonly number[];
    defaultSize: number;
    mostCells: number;
};

Members

NameTypeDescription
sizesreadonly number[]

Every side it can be made at, smallest first.

defaultSizenumber

The side a first visit opens on.

mostCellsnumber

The most characters one of its codes can hold, for a route to refuse anything larger.

Examples

import type { KazuSpec } from "@johnmorrisdotca/kazu";
import { KAZU_SPECS } from "@johnmorrisdotca/kazu";

const value: KazuSpec = KAZU_SPECS["number-place"];
console.log(value);
{ sizes: [ 4, 6, 9, 16, 25 ], defaultSize: 9, mostCells: 625 }

What it prints (run when this page was built)

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