Declaration
public SandwichSudoku(
int?[] columnClues,
int?[] rowClues,
int crust1 = 1,
int crust2 = 9,
int minValue = 1,
bool wraparound = false
)
Summary
Generates a Sandwich Sudoku in which some columns and rows have sandwich constraints.
Parameters
int?[] | columnClues |
Sandwich clues for the columns (from left to right). |
int?[] | rowClues |
Sandwich clues for the rows (from top to bottom). |
int | crust1 |
The lower value of the two that “sandwich” the sum. |
int | crust2 |
The higher value of the two that “sandwich” the sum. |
int | minValue |
Minimum value to be used in the grid. |
bool | wraparound |
If false , the clues are assumed to be the sum between the crusts no matter which order they are in in a
row/column. If true , the clues are assumed to be the sum of the digits going from crust1 to crust2, wrapping around the edge of the grid if they are in the “wrong”
order. |