Compare commits

..

No commits in common. "0e3aa42b7869df1b3cbf046ce5af4a426813f85e" and "81b44e1702fbf95b84984d3882aaecc851c70586" have entirely different histories.

5 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,8 @@ func (solver *Solver) validate_row(name string, row string) {
}
func (solver *Solver) valid_char(char rune) (valid bool) {
func (solver *Solver) valid_char(char rune) bool {
var valid bool
decvals := [10]int{48, 49, 50, 51, 52, 53, 54, 55, 56, 57}
for _, value := range decvals {

View File

@ -178,7 +178,8 @@ func (solver *Solver) tracker() {
}
func (solver *Solver) validate_combination(row1 int, row2 int, row3 int, row4 int, row5 int, row6 int, row7 int, row8 int, row9 int) (retval bool) {
func (solver *Solver) validate_combination(row1 int, row2 int, row3 int, row4 int, row5 int, row6 int, row7 int, row8 int, row9 int) bool {
var retval bool
retval = true
row1s := strconv.Itoa(row1)

View File

@ -6,7 +6,6 @@ import (
"strconv"
)
// The main loop that orchastrates all the logic.
func Run() {
// Instantiate the Solver interface
solver := Solver{}

View File

@ -4,7 +4,6 @@ import (
"sync/atomic"
)
// Struct/Interface containing all the important variabes it functions need access to.
type Solver struct {
blocks []int
row1 string