| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package controller
- import (
- "time"
- "gitea.ligthert.net/golang/sudoku-funpark/outputter"
- )
- // Simple interface to store values shared amongst packages.
- type Controller struct {
- // All possible blocks/rows available
- Blocks []string
- // 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
- // 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
- // Type of output requested
- Output string
- // Select printing method
- Print string
- // Outputter package
- Outputter *outputter.Outputter
- // Duration of the job
- Duration time.Duration
- // Calculate avg rate
- Rates []uint64
- }
|