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

stepEntryfunction

The number a tap on the chosen cell puts in it: one more, and after the largest the cell empties, and then it starts again at 1. A tap on a cell that is not chosen still only chooses it.

Import it

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

Definition

function stepEntry(value: number, size: number): number

Parameters

NameTypeDescription
valuenumber

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

sizenumber

The supported square grid side length.

Returns

number

The number a tap on the chosen cell puts in it: one more, and after the largest the cell empties, and then it starts again at 1. A tap on a cell that is not chosen still only chooses it.

Examples

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

console.log(stepEntry(4,4));
0

What it prints (run when this page was built)

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