Interface IPuzzle<T>
Provides read and write access to a Sudoku puzzle.
Inherited Members
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 Sourcethis[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 |
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 SourceDeepCopy()
Creates a deep-copy of this puzzle.
Declaration
T DeepCopy()
Returns
| Type | Description |
|---|---|
| T |