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-grid SVG

kazuCellNamefunction

A cell as a screen reader names it: "row 3, column 5".

Import it

import { kazuCellName } from "@johnmorrisdotca/kazu/draw";

Definition

function kazuCellName(size: number, index: number, language: KazuLanguage): string

Parameters

NameTypeDescription
sizenumber

The supported square grid side length.

indexnumber

The zero-based row-major cell index.

languageKazuLanguage

The native English or Japanese display language.

Returns

string

A cell as a screen reader names it: "row 3, column 5".

Examples

import { kazuCellName } from "@johnmorrisdotca/kazu/draw";

console.log(kazuCellName(4,0,"en"));
row 1, column 1

What it prints (run when this page was built)

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