diff --git a/solver/flags.go b/solver/flags.go index b0056ba..73bccad 100644 --- a/solver/flags.go +++ b/solver/flags.go @@ -143,8 +143,7 @@ func (solver *Solver) validate_row(name string, row string) { } -func (solver *Solver) valid_char(char rune) bool { - var valid bool +func (solver *Solver) valid_char(char rune) (valid bool) { decvals := [10]int{48, 49, 50, 51, 52, 53, 54, 55, 56, 57} for _, value := range decvals { diff --git a/solver/processing.go b/solver/processing.go index ea5fa16..edfe0e8 100644 --- a/solver/processing.go +++ b/solver/processing.go @@ -178,8 +178,7 @@ 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) bool { - var 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) (retval bool) { retval = true row1s := strconv.Itoa(row1)