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

valueOfSymbolfunction

The value a symbol names, or 0 for one that is not 1–9 or A–P (either case).

Import it

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

Definition

function valueOfSymbol(symbol: string): number

Parameters

NameTypeDescription
symbolstring

One native numeric-cell character.

Returns

number

The value a symbol names, or 0 for one that is not 1–9 or A–P (either case).

Examples

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

console.log(valueOfSymbol("A"));
10

What it prints (run when this page was built)

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