types.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package controller
  2. import "gitea.ligthert.net/golang/sudoku-funpark/outputter"
  3. // Simple interface to store values shared amongst packages.
  4. type Controller struct {
  5. // All possible blocks/rows available
  6. Blocks []string
  7. // 1st row of the Sudoku puzzle.
  8. Row1 string
  9. // 2nd row of the Sudoku puzzle.
  10. Row2 string
  11. // 3rd row of the Sudoku puzzle.
  12. Row3 string
  13. // 4th row of the Sudoku puzzle.
  14. Row4 string
  15. // 5th row of the Sudoku puzzle.
  16. Row5 string
  17. // 6th row of the Sudoku puzzle.
  18. Row6 string
  19. // 7th row of the Sudoku puzzle.
  20. Row7 string
  21. // 8th row of the Sudoku puzzle.
  22. Row8 string
  23. // 9th row of the Sudoku puzzle.
  24. Row9 string
  25. // Slice with all found solutions.
  26. Solutions [][]string
  27. // Number of CPUs Go routines are allowed to use.
  28. NumCPUs int
  29. // Number of parts the search should be split into.
  30. Split int
  31. // Which part of the search should the solver focus on.
  32. Part int
  33. // Type of output requested
  34. Output string
  35. // Select printing method
  36. Print string
  37. // Outputter package
  38. Outputter *outputter.Outputter
  39. }