Move all variables to the controller interface.
This commit is contained in:
34
controller/types.go
Normal file
34
controller/types.go
Normal file
@ -0,0 +1,34 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
type Controller 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
|
||||
}
|
Reference in New Issue
Block a user