More comments.
This commit is contained in:
parent
6dd5d2f232
commit
a7c5845b7a
@ -9,16 +9,28 @@ import (
|
|||||||
// Solve a given Sudoku puzzle by iterating through all possible solutions.
|
// Solve a given Sudoku puzzle by iterating through all possible solutions.
|
||||||
type Solver struct {
|
type Solver struct {
|
||||||
Controller *controller.Controller
|
Controller *controller.Controller
|
||||||
row1s []int
|
// Slice of possible blocks for the 1st row.
|
||||||
row2s []int
|
row1s []int
|
||||||
row3s []int
|
// Slice of possible blocks for the 2nd row.
|
||||||
row4s []int
|
row2s []int
|
||||||
row5s []int
|
// Slice of possible blocks for the 3rd row.
|
||||||
row6s []int
|
row3s []int
|
||||||
row7s []int
|
// Slice of possible blocks for the 4th row.
|
||||||
row8s []int
|
row4s []int
|
||||||
row9s []int
|
// Slice of possible blocks for the 5th row.
|
||||||
Iter int64
|
row5s []int
|
||||||
counter atomic.Int64
|
// Slice of possible blocks for the 6th row.
|
||||||
rates []int64
|
row6s []int
|
||||||
|
// Slice of possible blocks for the 7th row.
|
||||||
|
row7s []int
|
||||||
|
// Slice of possible blocks for the 8th row.
|
||||||
|
row8s []int
|
||||||
|
// Slice of possible blocks for the 9th row.
|
||||||
|
row9s []int
|
||||||
|
// Maximum number of possible solutions with the current set of rows.
|
||||||
|
Iter int64
|
||||||
|
// Progress counter, needs atomic due to the number of updates.
|
||||||
|
counter atomic.Int64
|
||||||
|
// Slice of rates for accurate duration estimation.
|
||||||
|
rates []int64
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user