crookMethodSolver

package
v0.0.0-...-f6a6671 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrookSolver

type CrookSolver struct {
	Settings     *models.Settings
	DebugPrinter printer.IPrinter
}

func (*CrookSolver) Solve

func (solver *CrookSolver) Solve(sudoku *models.Sudoku) (result bool, errors []error)

SolveWithCrookMethod tries to solve the sudoku puzzle by altering references which soduku model (a parameter) is build with. Returns a boolean flag indicating if solution was found and is correct, and slice of errors. Errors should not be printed to the user, they are actualy an errors.

type ISudokuSolver

type ISudokuSolver interface {
	Solve(sudoku *models.Sudoku) (result bool, errors []error)
}

func GetNewSudokuSolver

func GetNewSudokuSolver(settings *models.Settings, debugPrinter printer.IPrinter) ISudokuSolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL