UNPKG

@logic-pad/core

Version:
29 lines (28 loc) 959 B
import { AnyConfig } from '../config.js'; import GridData from '../grid.js'; import { Color, RuleState } from '../primitives.js'; import Rule, { SearchVariant } from './rule.js'; export default class ConnectAllRule extends Rule { readonly color: Color; private static readonly CONFIGS; private static readonly EXAMPLE_GRID_LIGHT; private static readonly EXAMPLE_GRID_DARK; private static readonly SEARCH_VARIANTS; /** * **Connect all <color> cells** * * @param color - The color of the cells to connect. */ 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; withColor(color: Color): this; } export declare const instance: ConnectAllRule;