io-chess
UCI chess engine
Loading...
Searching...
No Matches
EvalScore Struct Reference

Holds separate middle-game (mg) and end-game (eg) scores. More...

#include <SimpleEvalContext.h>

Public Member Functions

constexpr EvalScore (int m=0, int e=0)
EvalScoreoperator+= (const EvalScore &rhs)
EvalScoreoperator-= (const EvalScore &rhs)
EvalScore operator+ (const EvalScore &rhs) const
EvalScore operator- (const EvalScore &rhs) const

Public Attributes

int mg
 Middle-game evaluation score.
int eg
 End-game evaluation score.

Detailed Description

Holds separate middle-game (mg) and end-game (eg) scores.

Used for tapered evaluation to interpolate smoothly between game phases.

Constructor & Destructor Documentation

◆ EvalScore()

EvalScore::EvalScore ( int m = 0,
int e = 0 )
inlineconstexpr
Here is the caller graph for this function:

Member Function Documentation

◆ operator+()

EvalScore EvalScore::operator+ ( const EvalScore & rhs) const
inline
Here is the call graph for this function:

◆ operator+=()

EvalScore & EvalScore::operator+= ( const EvalScore & rhs)
inline
Here is the call graph for this function:

◆ operator-()

EvalScore EvalScore::operator- ( const EvalScore & rhs) const
inline
Here is the call graph for this function:

◆ operator-=()

EvalScore & EvalScore::operator-= ( const EvalScore & rhs)
inline
Here is the call graph for this function:

Member Data Documentation

◆ eg

int EvalScore::eg

End-game evaluation score.

◆ mg

int EvalScore::mg

Middle-game evaluation score.


The documentation for this struct was generated from the following file: