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

| Improve this Doc View Source

Item[Coordinate]

Gets or sets the value of the given square, like Item[Int32, Int32], but using a Coordinate instead of langword_csharp_int accessors.

Declaration
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
System.Nullable<System.Int32>

The value of the square at c

| Improve this Doc View Source

Item[Int32, Int32]

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
System.Int32 row
System.Int32 col
Property Value
Type Description
System.Nullable<System.Int32>

Methods

| Improve this Doc View Source

DeepCopy()

Creates a deep-copy of this puzzle.

Declaration
T DeepCopy()
Returns
Type Description
T
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX