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 · Ripple Effect rules

generateRipplefunction

Builds a seeded block-room family and accepts it only after a bounded uniqueness proof.

Import it

import { generateRipple } from "@johnmorrisdotca/kazu/ripple";

Also exported from: @johnmorrisdotca/kazu

Definition

function generateRipple(width?: number, height?: number, seed?: number): RipplePuzzle

Parameters

NameTypeDescription
width (optional)number

The supported board width in cells.

height (optional)number

The supported board height in cells.

seed (optional)number

The reproducible native puzzle seed.

Returns

RipplePuzzle

Builds a seeded block-room family and accepts it only after a bounded uniqueness proof.

Examples

import { generateRipple } from "@johnmorrisdotca/kazu/ripple";

console.log(generateRipple(9,9,42));

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