types.go 884 B

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