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
| Improve this Doc View SourceItem[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 |
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 SourceDeepCopy()
Creates a deep-copy of this puzzle.
Declaration
T DeepCopy()
Returns
Type | Description |
---|---|
T |