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

ShikakuChallengetype

The named route, board shape, difficulty and seed of one Shikaku challenge.

Import it

import type { ShikakuChallenge } from "@johnmorrisdotca/kazu/shikaku";

Also exported from: @johnmorrisdotca/kazu

Definition

type ShikakuChallenge = {
    pack: ShikakuPackKey;
    packTitle: string;
    name: string;
    level: ShikakuLevel;
    width: number;
    height: number;
    seed: number;
};

Members

NameTypeDescription
packShikakuPackKey
packTitlestring
namestring
levelShikakuLevel
widthnumber
heightnumber
seednumber

Examples

import type { ShikakuChallenge } from "@johnmorrisdotca/kazu/shikaku";

const value: ShikakuChallenge = {pack:"square",packTitle:"The Courtyard",name:"First Cut",level:"easy",width:7,height:7,seed:1};
console.log(value);
{
  pack: 'square',
  packTitle: 'The Courtyard',
  name: 'First Cut',
  level: 'easy',
  width: 7,
  height: 7,
  seed: 1
}

What it prints (run when this page was built)

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