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

isKazuSeedfunction

Whether a value is a seed this package takes: a whole number from 1 to KAZU_SEED_MOST.

Import it

import { isKazuSeed } from "@johnmorrisdotca/kazu";

Definition

function isKazuSeed(value: unknown): value is number

Parameters

NameTypeDescription
valueunknown

The value to validate, encode or enter specified by this signature.

Returns

boolean

Whether a value is a seed this package takes: a whole number from 1 to KAZU_SEED_MOST.

Examples

import { isKazuSeed } from "@johnmorrisdotca/kazu";

console.log(isKazuSeed(42));
true

What it prints (run when this page was built)

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