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

notesOffunction

Every value of a pencil-mark mask, smallest first.

Import it

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

Definition

function notesOf(mask: number): number[]

Parameters

NameTypeDescription
masknumber

The pencil-note bit mask: bit value denotes that note.

Returns

number[]

Every value of a pencil-mark mask, smallest first.

Examples

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

console.log(notesOf((1<<1)|(1<<3)));
[ 1, 3 ]

What it prints (run when this page was built)

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