Show / Hide Table of Contents

Struct SolveStats

Contains statistics about an attempt to solve a puzzle.

Implements
System.IEquatable<SolveStats>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SudokuSpice
Assembly: SudokuSpice.dll
Syntax
public struct SolveStats : IEquatable<SolveStats>

Properties

| Improve this Doc View Source

NumSolutionsFound

The number of solutions found for this puzzle. For any real Sudoku puzzle, this should be 1.

Declaration
public int NumSolutionsFound { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

NumSquaresGuessed

The number of squares for which the solver had to guess while finding a solution.

Declaration
public int NumSquaresGuessed { get; set; }
Property Value
Type Description
System.Int32
Remarks

Unlike NumTotalGuesses, if the solver was setting a square that had three possible values, this would only add 1 to NumSquaresGuessed. If NumSolutionsFound is greater than 1, then the precise meaning of this value is undefined.

| Improve this Doc View Source

NumTotalGuesses

The total number of guesses used to solve the puzzle. A 'guess' is any time the solver tries setting a square to one value when there are multiple possible values for that square.

Declaration
public int NumTotalGuesses { get; set; }
Property Value
Type Description
System.Int32
Remarks

Example Guesses: if the solver tried to set square (0,1) with possible values [2, 3, 5] then this would add three total guesses since there were three possible values for this coordinate. This would be true even if only one of the values actually led to a solution.

Methods

| Improve this Doc View Source

Equals(SolveStats)

Declaration
public bool Equals(SolveStats other)
Parameters
Type Name Description
SolveStats other
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.ValueType.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()

Operators

| Improve this Doc View Source

Equality(SolveStats, SolveStats)

Declaration
public static bool operator ==(SolveStats left, SolveStats right)
Parameters
Type Name Description
SolveStats left
SolveStats right
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Inequality(SolveStats, SolveStats)

Declaration
public static bool operator !=(SolveStats left, SolveStats right)
Parameters
Type Name Description
SolveStats left
SolveStats right
Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX