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

Marktype

A mark: the cell at less holds a smaller number than the cell at more. Both are indexes, always adjacent.

Import it

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

Definition

type Mark = {
    less: number;
    more: number;
};

Members

NameTypeDescription
lessnumber
morenumber

Examples

import { decodeMoreOrLess } from "@johnmorrisdotca/kazu";
import type { Mark } from "@johnmorrisdotca/kazu";

const inequalities = decodeMoreOrLess("1.........2......>...>...........^......",4)!;
const value: Mark = inequalities.marks[0];
console.log(value);
{ less: 2, more: 1 }

What it prints (run when this page was built)

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