Reference · Number-puzzle engines
KAZU_BOXESconstant
A 9×9 has 3×3 boxes and a 4×4 has 2×2; a 6×6 has boxes two rows tall and three columns wide, which is the one people get wrong and the reason this is a table rather than a square root.
Import it
import { KAZU_BOXES } from "@johnmorrisdotca/kazu";
Definition
const KAZU_BOXES: Record<number, Boxes> = {
4: { rows: 2, cols: 2 },
6: { rows: 2, cols: 3 },
9: { rows: 3, cols: 3 },
16: { rows: 4, cols: 4 },
25: { rows: 5, cols: 5 },
}
Examples
import { KAZU_BOXES } from "@johnmorrisdotca/kazu";
console.log(KAZU_BOXES);{
'4': { rows: 2, cols: 2 },
'6': { rows: 2, cols: 3 },
'9': { rows: 3, cols: 3 },
'16': { rows: 4, cols: 4 },
'25': { rows: 5, cols: 5 }
}What it prints (run when this page was built)