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

Segmenttype

A line segment in cell units: where one part of a cage's dashed outline runs.

Import it

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

Definition

type Segment = {
    x1: number;
    y1: number;
    x2: number;
    y2: number;
};

Members

NameTypeDescription
x1number
y1number
x2number
y2number

Examples

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

const value: Segment = {x1:0,y1:0,x2:1,y2:0};
console.log(value);
{ x1: 0, y1: 0, x2: 1, y2: 0 }

What it prints (run when this page was built)

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