UNPKG

@logic-pad/core

Version:
19 lines (18 loc) 828 B
import GridData from '../../grid.js'; import Solver from '../solver.js'; import Instruction from '../../instruction.js'; export default class AutoSolver extends Solver { readonly id = "auto"; readonly author = "various contributors"; readonly description = "Automatically select the fastest solver based on supported instructions and environment."; readonly supportsCancellation = true; private static readonly nonAdditiveInstructions; isGridSupported(grid: GridData): boolean; isInstructionSupported(grid: GridData, instruction: Instruction): boolean; protected isEnvironmentSupported(): Promise<boolean>; private fillSolution; private fixGrid; private solveWithProgress; private solveOne; solve(grid: GridData, abortSignal?: AbortSignal): AsyncGenerator<GridData | null>; }