solver

package
v0.0.0-...-802e8cc Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeStrategy

type CodeStrategy func(*Solver, []int) int

type CombinedStrategy

type CombinedStrategy func(*Solver, []int) (int, []int)

type ProgressCallback

type ProgressCallback func(string)

type Solver

type Solver struct {
	// contains filtered or unexported fields
}

func Combinator

func Combinator() *Solver

func Combinator1_1

func Combinator1_1() *Solver

func Combinator2

func Combinator2() *Solver

func CombineEliminated

func CombineEliminated() *Solver

func FromString

func FromString(solverName string) *Solver

func NotImplementedSolver

func NotImplementedSolver() *Solver

NotImplementedSolver can't solve any games, but can be used to get the inital solutions for game generation

func Optimistic

func Optimistic() *Solver

func Pessimistic

func Pessimistic() *Solver

func Random

func Random() *Solver

func (*Solver) GetPlayerName

func (s *Solver) GetPlayerName() string

func (*Solver) InitialSolutions

func (s *Solver) InitialSolutions(gameToSolve game.Game) []game.Solution

func (*Solver) SetProgressCallback

func (s *Solver) SetProgressCallback(callback ProgressCallback) *Solver

func (*Solver) Solve

func (s *Solver) Solve(gameToSolve game.Game) (bool, game.Solution)

type VerifierStrategy

type VerifierStrategy func(*Solver, int, []int) int

Jump to

Keyboard shortcuts

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