Documentation ¶
Overview ¶
Package evaluator contains structures and functions to calculate the value of a chess position to be used in a chess engine search
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator represents a data structure and functionality fo evaluating chess positions by using various evaluation heuristics like material, positional values, pawn structure, etc.
Create a new instance with NewEvaluator()
func NewEvaluator ¶
func NewEvaluator() *Evaluator
NewEvaluator creates a new instance of an Evaluator.
func (*Evaluator) Evaluate ¶
Evaluate calculates a value for a chess positions by using various evaluation heuristics like material, positional values, pawn structure, etc. It calls InitEval and then the internal evaluation function which calculates the value for the position of the given position for the current game phase and from the view of the next player.