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

KAZU_BOXESconstant

A 9×9 has 3×3 boxes and a 4×4 has 2×2; a 6×6 has boxes two rows tall and three columns wide, which is the one people get wrong and the reason this is a table rather than a square root.

Import it

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

Definition

const KAZU_BOXES: Record<number, Boxes> = {
    4: { rows: 2, cols: 2 },
    6: { rows: 2, cols: 3 },
    9: { rows: 3, cols: 3 },
    16: { rows: 4, cols: 4 },
    25: { rows: 5, cols: 5 },
}

Examples

import { KAZU_BOXES } from "@johnmorrisdotca/kazu";
console.log(KAZU_BOXES);
{
  '4': { rows: 2, cols: 2 },
  '6': { rows: 2, cols: 3 },
  '9': { rows: 3, cols: 3 },
  '16': { rows: 4, cols: 4 },
  '25': { rows: 5, cols: 5 }
}

What it prints (run when this page was built)

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