engine

package module
v0.0.0-...-0f97ec1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Hash               int
	Threads            int
	ExperimentSettings bool
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(evalBuilder func() Evaluator) *Engine

func (*Engine) Clear

func (e *Engine) Clear()

func (*Engine) Prepare

func (e *Engine) Prepare()

func (*Engine) Search

func (e *Engine) Search(ctx context.Context, searchParams SearchParams) SearchInfo

type Evaluator

type Evaluator interface {
	Evaluate(p *Position) int
}

type SortTable

type SortTable interface {
	Clear()
	Update(p *Position, bestMove Move, searched []Move, depth, height int)
	Note(p *Position, ml []OrderedMove, trans Move, height int)
	NoteQS(p *Position, ml []OrderedMove)
}

type TimeManager

type TimeManager interface {
	OnNodesChanged(nodes int)
	OnIterationComplete(line mainLine)
	Close()
}

type TransTable

type TransTable interface {
	Megabytes() int
	PrepareNewSearch()
	Clear()
	Read(p *Position) (depth, score, bound int, move Move, ok bool)
	Update(p *Position, depth, score, bound int, move Move)
}

Jump to

Keyboard shortcuts

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