Show / Hide Table of Contents

Interface IPuzzle<T>

Provides read and write access to a Sudoku puzzle.

Inherited Members
IReadOnlyPuzzle.Size
IReadOnlyPuzzle.NumSquares
IReadOnlyPuzzle.NumEmptySquares
IReadOnlyPuzzle.NumSetSquares
IReadOnlyPuzzle.AllPossibleValuesSpan
IReadOnlyPuzzle.CountPerUniqueValue
IReadOnlyPuzzle.GetUnsetCoords()
Namespace: SudokuSpice
Assembly: SudokuSpice.dll
Syntax
public interface IPuzzle<T> : IReadOnlyPuzzle where T : class, IPuzzle<T>
Type Parameters
Name Description
T

Should be the concrete type implementing this interface.

Properties

| Edit this page View Source

this[Coordinate]

Gets or sets the value of the given square, like this[int, int], but using a Coordinate instead of int accessors.

Declaration
[SuppressMessage("Design", "CA1043:Use Integral Or String Argument For Indexers", Justification = "This makes sense with Coordinate, which removes any ambiguity between first and second arguments")]
int? this[in Coordinate c] { get; set; }
Parameters
Type Name Description
Coordinate c

The location of the square to get/set the value of.

Property Value
Type Description
int?

The value of the square at c

| Edit this page View Source

this[int, int]

Gets or sets the current value of a given square. A square can be 'unset' by setting its value to null.

Declaration
int? this[int row, int col] { get; set; }
Parameters
Type Name Description
int row
int col
Property Value
Type Description
int?

Methods

| Edit this page View Source

DeepCopy()

Creates a deep-copy of this puzzle.

Declaration
T DeepCopy()
Returns
Type Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX