UNPKG

@logic-pad/core

Version:
31 lines (30 loc) 1.15 kB
import { AnyConfig } from '../config.js'; import GridData from '../grid.js'; import { Color, RuleState } from '../primitives.js'; import CellCountPerZoneRule from './cellCountPerZoneRule.js'; import { SearchVariant } from './rule.js'; export default class DifferentCountPerZoneRule extends CellCountPerZoneRule { readonly color: Color; readonly title = "Different Count Per Zone"; private static readonly CONFIGS; private static readonly EXAMPLE_GRID_LIGHT; private static readonly EXAMPLE_GRID_DARK; private static readonly EXAMPLE_GRID_GRAY; private static readonly SEARCH_VARIANTS; /** * **Zones of the same size have different numbers of <color> cells.** * * @param color - The color of the cells to count. */ constructor(color: Color); get id(): string; get explanation(): string; get configs(): readonly AnyConfig[] | null; createExampleGrid(): GridData; get searchVariants(): SearchVariant[]; validateGrid(grid: GridData): RuleState; copyWith({ color }: { color?: Color; }): this; } export declare const instance: DifferentCountPerZoneRule;