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 · Cross Sums rules

CrossSumsDrawOptionstype

Current CrossSums marks or entries, selection, errors and native SVG appearance choices.

Import it

import type { CrossSumsDrawOptions } from "@johnmorrisdotca/kazu/cross-sums";

Also exported from: @johnmorrisdotca/kazu/cross-sums/draw, @johnmorrisdotca/kazu

Definition

type CrossSumsDrawOptions = {
    values?: readonly number[];
    notes?: readonly (readonly number[])[];
    selected?: number;
    material?: CrossSumsMaterial;
    pieces?: CrossSumsPieces;
    errors?: readonly number[];
};

Members

NameTypeDescription
values (optional)readonly number[] | undefined
notes (optional)readonly (readonly number[])[] | undefined
selected (optional)number | undefined
material (optional)CrossSumsMaterial | undefined
pieces (optional)CrossSumsPieces | undefined
errors (optional)readonly number[] | undefined

Examples

import type { CrossSumsDrawOptions } from "@johnmorrisdotca/kazu/cross-sums";

const value: CrossSumsDrawOptions = {material:"ivory"};
console.log(value);
{ material: 'ivory' }

What it prints (run when this page was built)

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