Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
eval.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bPositionEvaluation
 
class  PosEvalPiecesOnly
 
class  PosEvalStaticBoard
 
class  PosEvalPositionalBoard
 

Namespaces

namespace  belofte
 Allow index mapper for char values of piece into int in 1-12 range to reduce space and easy initialisation.
 

Typedefs

typedef enum gameResult gameResult_t
 

Enumerations

enum  gameResult {
  GR_UNKNOWN = 0 , GR_DRAW_STALEMATE = 10 , GR_DRAW_LACKMATERIAL , GR_DRAW_THREEFOLD ,
  GR_DRAW_50 , GR_DRAW_ADJ , GR_DRAW_FLAG , GR_DRAW_OTHER ,
  GR_WHITEMATES = 20 , GR_BLACKRESIGNS , GR_WHITEWINS_ADJ , GR_WHITEWINS_FLAG ,
  GR_BLACKMATES = 30 , GR_WHITERESIGNS , GR_BLACKWINS_ADJ , GR_BLACKWINS_FLAG
}
 

Functions

bScore belofte::realScore (bScore const sc)
 

Variables

constexpr bScore SCORE_INFINITE = 0x3FFF
 
constexpr bScore SCORE_POSITIVE = 0x7FFF
 
constexpr bScore SCORE_THEORETIC_DRAW = 0x4000
 
constexpr bScore SCORE_PRACTICAL_DRAW = SCORE_THEORETIC_DRAW | ~SCORE_POSITIVE
 
constexpr bScore SCORE_PUNDEFINED = 0x3FFE
 
constexpr bScore SCORE_UNDEFINED = SCORE_PUNDEFINED | ~SCORE_POSITIVE
 
constexpr bScore SCORE_ALMOST_NORMAL = 0x2FFF
 
constexpr bScore SCORE_MATE = 0x2F4F
 
constexpr bScore SCORE_WINNING = 0x27FF
 
constexpr bScore SCORE_RESIGN = 0x0578
 
constexpr bScore SCORE_ALMOST_DRAW = 0x000A
 
constexpr bScore SCORE_DRAW = 0x0000
 
constexpr bScore SCORE_CONVERGE_BYDEPTH = 1
 
constexpr bScore SCORE_BETAMARGIN = 80
 

Typedef Documentation

◆ gameResult_t

typedef enum gameResult gameResult_t

Definition at line 41 of file eval.h.

Enumeration Type Documentation

◆ gameResult

enum gameResult
Enumerator
GR_UNKNOWN 
GR_DRAW_STALEMATE 
GR_DRAW_LACKMATERIAL 
GR_DRAW_THREEFOLD 
GR_DRAW_50 
GR_DRAW_ADJ 
GR_DRAW_FLAG 
GR_DRAW_OTHER 
GR_WHITEMATES 
GR_BLACKRESIGNS 
GR_WHITEWINS_ADJ 
GR_WHITEWINS_FLAG 
GR_BLACKMATES 
GR_WHITERESIGNS 
GR_BLACKWINS_ADJ 
GR_BLACKWINS_FLAG 

Definition at line 33 of file eval.h.

Variable Documentation

◆ SCORE_INFINITE

◆ SCORE_POSITIVE

◆ SCORE_THEORETIC_DRAW

◆ SCORE_PRACTICAL_DRAW

constexpr bScore SCORE_PRACTICAL_DRAW = SCORE_THEORETIC_DRAW | ~SCORE_POSITIVE
constexpr

Definition at line 18 of file eval.h.

◆ SCORE_PUNDEFINED

◆ SCORE_UNDEFINED

◆ SCORE_ALMOST_NORMAL

constexpr bScore SCORE_ALMOST_NORMAL = 0x2FFF
constexpr

Definition at line 22 of file eval.h.

Referenced by bSearchAlgorithm::attenuateScore(), and UCIMode::sendInfoScore().

◆ SCORE_MATE

constexpr bScore SCORE_MATE = 0x2F4F
constexpr

◆ SCORE_WINNING

constexpr bScore SCORE_WINNING = 0x27FF
constexpr

◆ SCORE_RESIGN

constexpr bScore SCORE_RESIGN = 0x0578
constexpr

Definition at line 25 of file eval.h.

◆ SCORE_ALMOST_DRAW

constexpr bScore SCORE_ALMOST_DRAW = 0x000A
constexpr

Definition at line 26 of file eval.h.

Referenced by bSearchAlgorithm::attenuateScore().

◆ SCORE_DRAW

constexpr bScore SCORE_DRAW = 0x0000
constexpr

Definition at line 27 of file eval.h.

Referenced by belofte::realScore().

◆ SCORE_CONVERGE_BYDEPTH

constexpr bScore SCORE_CONVERGE_BYDEPTH = 1
constexpr

◆ SCORE_BETAMARGIN

constexpr bScore SCORE_BETAMARGIN = 80
constexpr

Definition at line 30 of file eval.h.

Referenced by SearchAlphaBetaFH::SearchAlphaBetaFH().