Reference · Load level collections
TSUNAGI_LEVEL_COUNTSconstant
How many levels each size has, read without loading the size. Sixteen
blocks of sixteen (levelBlocks.ts); twelve at 4×4, where the generator
runs out of distinct boards with one answer before two hundred; eight at
10×10 and 12×12 and four at 11×11, whose boards are slow to find and to
prove on every build; eight at 13×13, 14×14 and 15×15, found and proved by a
solver that learns from its dead ends (solveSat.ts); four at 20×20, 25×25
and 30×30, made by taking clues away (reduce.ts).
Import it
import { TSUNAGI_LEVEL_COUNTS } from "@johnmorrisdotca/tsunagi/levels";
Also exported from: @johnmorrisdotca/tsunagi
Definition
const TSUNAGI_LEVEL_COUNTS: Record<number, number> = { 4: 192, 5: 256, 6: 256, 7: 256, 8: 256, 9: 256, 10: 128, 11: 64, 12: 128, 13: 128, 14: 128, 15: 128, 20: 64, 25: 64, 30: 64 }
Examples
import { TSUNAGI_LEVEL_COUNTS } from "@johnmorrisdotca/tsunagi/levels";
console.log(TSUNAGI_LEVEL_COUNTS);{
'4': 192,
'5': 256,
'6': 256,
'7': 256,
'8': 256,
'9': 256,
'10': 128,
'11': 64,
'12': 128,
'13': 128,
'14': 128,
'15': 128,
'20': 64,
'25': 64,
'30': 64
}What it prints (run when this page was built)