36 lines
610 B
Go
36 lines
610 B
Go
package solver
|
|
|
|
import (
|
|
"sync/atomic"
|
|
)
|
|
|
|
// Struct/Interface containing all the important variabes it functions need access to.
|
|
type Solver struct {
|
|
blocks []int
|
|
row1 string
|
|
row2 string
|
|
row3 string
|
|
row4 string
|
|
row5 string
|
|
row6 string
|
|
row7 string
|
|
row8 string
|
|
row9 string
|
|
row1s []int
|
|
row2s []int
|
|
row3s []int
|
|
row4s []int
|
|
row5s []int
|
|
row6s []int
|
|
row7s []int
|
|
row8s []int
|
|
row9s []int
|
|
iter int64
|
|
counter atomic.Int64
|
|
solutions []string
|
|
rates []int64
|
|
numCPUs int
|
|
split int
|
|
part int
|
|
}
|