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
| Name | Type | Description |
|---|---|---|
value | number | The value to validate, encode or enter specified by this signature. |
size | number | 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));0What it prints (run when this page was built)