Reference · Number-puzzle engines
Boxestype
Where the boxes are on a Sudoku grid: how many rows and columns of cells each box holds.
Import it
import type { Boxes } from "@johnmorrisdotca/kazu";
Definition
type Boxes = {
rows: number;
cols: number;
};
Members
| Name | Type | Description |
|---|---|---|
rows | number | |
cols | number |
Examples
import type { Boxes } from "@johnmorrisdotca/kazu";
import { KAZU_BOXES } from "@johnmorrisdotca/kazu";
const value: Boxes = KAZU_BOXES[6];
console.log(value);{ rows: 2, cols: 3 }What it prints (run when this page was built)