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

Boxestype

Where the boxes are on a Sudoku grid: how many rows and columns of cells each box holds.

Import it

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

Definition

type Boxes = {
    rows: number;
    cols: number;
};

Members

NameTypeDescription
rowsnumber
colsnumber

Examples

import type { Boxes } from "@johnmorrisdotca/kazu";
import { KAZU_BOXES } from "@johnmorrisdotca/kazu";

const value: Boxes = KAZU_BOXES[6];
console.log(value);
{ rows: 2, cols: 3 }

What it prints (run when this page was built)

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