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

YajilinSolutiontype

The solved Yajilin shading and loop edges.

Import it

import type { YajilinSolution } from "@johnmorrisdotca/kazu/yajilin";

Also exported from: @johnmorrisdotca/kazu

Definition

type YajilinSolution = {
    shaded: readonly boolean[];
    edges: readonly number[];
};

Members

NameTypeDescription
shadedreadonly boolean[]
edgesreadonly number[]

Examples

import type { YajilinPuzzle, YajilinSolution } from "@johnmorrisdotca/kazu/yajilin";

const yajilinSolution: YajilinPuzzle["solution"] = {"shaded":[false,true,false,true,false,true,false,false,false,true,false,false,false,false,false,false,false,false,false,true,true,false,false,true,false],"edges":[5,26,6,28,31,33,13,14]};
const value: YajilinSolution = yajilinSolution;
console.log(value);
{
  shaded: [
    false, true,  false, true,
    false, true,  false, false,
    false, true,  false, false,
    false, false, false, false,
    false, false, false, true,
    true,  false, false, true,
    false
  ],
  edges: [
     5, 26,  6, 28,
    31, 33, 13, 14
  ]
}

What it prints (run when this page was built)

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