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 · Nurikabe rules

isNurikabeBoardfunction

Whether the value has valid native Nurikabe dimensions, clues and data.

Import it

import { isNurikabeBoard } from "@johnmorrisdotca/kazu/nurikabe";

Also exported from: @johnmorrisdotca/kazu

Definition

function isNurikabeBoard(board: NurikabeBoard): boolean

Parameters

NameTypeDescription
boardNurikabeBoard

The valid native board with its printed clues and dimensions.

Returns

boolean

Whether the value has valid native Nurikabe dimensions, clues and data.

Examples

import type { NurikabeBoard } from "@johnmorrisdotca/kazu/nurikabe";
import { isNurikabeBoard } from "@johnmorrisdotca/kazu/nurikabe";

const nurikabeBoard: NurikabeBoard = {"size":5,"clues":[1,0,0,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,2,0,0,3,0,0]};
console.log(isNurikabeBoard(nurikabeBoard));
true

What it prints (run when this page was built)

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