Sudoku observations and programmatic considerations

  • November 28, 2010
  • James Skemp
  • gaming

At the lowest level, any Sudoku puzzle consists of a number of squares.

There are rows times columns squares consisting of a single value.

There are x number of larger squares consisting of y values, where x is the smallest of rows and columns, and y is the largest of rows and columns.

As already mentioned, there are a x number of rows, as well as a y number of columns.

Overlap is possible, but the puzzle still consists of these basic parts.

Given the above:

  • Puzzle
    • Rows (int)
    • Columns (int)
    • Squares (collection of Square)
  • Square
    • Value (string)
    • Row (int)
    • Column (int)
    • Block (int) may not be required