Make godoc happy, and add extra comments.

This commit is contained in:
2025-01-28 00:31:02 +01:00
parent 6b0e55e3f9
commit 6dd5d2f232
11 changed files with 55 additions and 17 deletions

View File

@ -1,18 +1,33 @@
package controller
// Simple interface to store values shared amongst packages.
type Controller struct {
Blocks []int
Row1 string
Row2 string
Row3 string
Row4 string
Row5 string
Row6 string
Row7 string
Row8 string
Row9 string
// All possible blocks/rows available
Blocks []int
// 1st row of the Sudoku puzzle.
Row1 string
// 2nd row of the Sudoku puzzle.
Row2 string
// 3rd row of the Sudoku puzzle.
Row3 string
// 4th row of the Sudoku puzzle.
Row4 string
// 5th row of the Sudoku puzzle.
Row5 string
// 6th row of the Sudoku puzzle.
Row6 string
// 7th row of the Sudoku puzzle.
Row7 string
// 8th row of the Sudoku puzzle.
Row8 string
// 9th row of the Sudoku puzzle.
Row9 string
// Slice with all found solutions.
Solutions []string
NumCPUs int
Split int
Part int
// Number of CPUs Go routines are allowed to use.
NumCPUs int
// Number of parts the search should be split into.
Split int
// Which part of the search should the solver focus on.
Part int
}