Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: SandwichSudoku(int[], int[], int, int, int, bool)

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 all the sandwich constraints for every column and row are specified.

Parameters

int[]columnClues Sandwich clues for the columns (from left to right).
int[]rowClues Sandwich clues for the rows (from top to bottom).
intcrust1 The lower value of the two that “sandwich” the sum.
intcrust2 The higher value of the two that “sandwich” the sum.
intminValue Minimum value to be used in the grid.
boolwraparound 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.