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 · Loop rules

LoopDrawOptionstype

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

Import it

import type { LoopDrawOptions } from "@johnmorrisdotca/kazu/loop";

Also exported from: @johnmorrisdotca/kazu/loop/play, @johnmorrisdotca/kazu/loop/draw, @johnmorrisdotca/kazu

Definition

type LoopDrawOptions = {
    edges?: LoopGame["edges"];
    selected?: number | null;
    errors?: readonly number[];
    material?: LoopMaterial;
    language?: LoopLanguage;
};

Members

NameTypeDescription
edges (optional)readonly number[] | undefined
selected (optional)number | null | undefined
errors (optional)readonly number[] | undefined
material (optional)LoopMaterial | undefined
language (optional)LoopLanguage | undefined

Examples

import type { LoopDrawOptions } from "@johnmorrisdotca/kazu/loop";

const value: LoopDrawOptions = {language:"en"};
console.log(value);
{ language: 'en' }

What it prints (run when this page was built)

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