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

TowerCluestype

Each side's clues, in reading order along it; 0 where there is none.

Import it

import type { TowerClues } from "@johnmorrisdotca/kazu";

Definition

type TowerClues = Record<TowerSide, number[]>;

Members

NameTypeDescription
rightnumber[]
leftnumber[]
topnumber[]
bottomnumber[]

Examples

import type { TowerClues } from "@johnmorrisdotca/kazu";
import { noClues } from "@johnmorrisdotca/kazu";

const value: TowerClues = noClues(4);
console.log(value);
{
  top: [ 0, 0, 0, 0 ],
  bottom: [ 0, 0, 0, 0 ],
  left: [ 0, 0, 0, 0 ],
  right: [ 0, 0, 0, 0 ]
}

What it prints (run when this page was built)

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