Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Interface: PuzzleSolvers.IProgressVisualizerData

Summary

Exposes information about the puzzle solver state while invoking methods on an implementation of IProgressVisualizer.

Instance methods

int?
GetValue(int cell)
Returns the value of a particular cell in the puzzle, or null if that cell is not currently under examination.
bool
IsTaken(int cell, int value)
Determines whether a specific value has been ruled out for a specific cell within the current recursion context.
bool
WasTaken(int cell, int value)
This method is only called if SolverInstructions.IntendedSolution was specified and the solver encountered a constraint that ruled out the intended solution. Determines whether a specific value was already ruled out for a specific cell within the current recursion context before the problematic constraint was processed.

Instance properties

int? The current cell under examination. (see also remarks)
intCurrent recursion depth.
intReturns the size of the puzzle (number of cells).
intMaximum value for the cells in the puzzle.
intMinimum value for the cells in the puzzle.
object During calls to IProgressVisualizer.VisualizeProgress(IProgressVisualizerData), when examining a new cell, this is null. When examining a different value in the same cell, or during calls to IProgressVisualizer.EraseProgress(IProgressVisualizerData), contains the object previously returned by IProgressVisualizer.VisualizeProgress(IProgressVisualizerData).
int This is 0 (zero) unless SolverInstructions.Randomizer is specified, in which case this indicates at which value the solver starts to examine possible values for the cell.