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-grid SVG

kazuGeometryfunction

Where everything is in the drawing of a puzzle of this kind and side.

Import it

import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";

Definition

function kazuGeometry(kind: KazuKind, size: number): KazuGeometry

Parameters

NameTypeDescription
kind"number-place" | "jigsaw" | "diagonal" | "sum-cages" | "more-or-less" | "towers"

The native number-grid puzzle key.

sizenumber

The supported square grid side length.

Returns

KazuGeometry

Where everything is in the drawing of a puzzle of this kind and side.

Examples

import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";

console.log(kazuGeometry("number-place",4).centre(0));
{ x: 60, y: 60 }

What it prints (run when this page was built)

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